Skip to content

refactor(content): drop the archived golang/gddo dependency - #75

Merged
kolkov merged 2 commits into
masterfrom
fix/drop-gddo
Oct 27, 2026
Merged

kolkov merged 2 commits into
masterfrom
fix/drop-gddo

Conversation

@kolkov

@kolkov kolkov commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Removes the dependency on github.com/golang/gddo, an archived repository pinned at a 2019 pseudo-version.

content.LanguageNegotiator used only gddo's header.ParseAccept. It and its helpers are copied into internal/header with the Go Authors copyright and BSD license, together with gddo's ParseAccept test table. The copied code is unchanged apart from building the octet table in a function instead of init and writing strings.IndexRune(...) >= 0 as strings.ContainsRune. Language negotiation behaves exactly as before; go.mod no longer requires gddo or go-cmp.

Also in this PR: the CHANGELOG entry for #72, and SECURITY.md now points reporters to Report a vulnerability on the Security tab.

LanguageNegotiator used only header.ParseAccept from
github.com/golang/gddo, an archived repository pinned at a 2019
pseudo-version. Copy ParseAccept and its helpers into internal/header,
keeping the Go Authors copyright and BSD license, together with gddo's
ParseAccept test table. The octet table is now built by a function
instead of init, and strings.IndexRune(...) >= 0 is written as
strings.ContainsRune; the parsing code is unchanged.

go.mod no longer requires golang/gddo or go-cmp.
CHANGELOG [Unreleased] gets the CORS preflight fix from #72 with its
behaviour note. SECURITY.md points reporters to Report a vulnerability on
the Security tab, now that private vulnerability reporting is enabled.
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.85%. Comparing base (307c47c) to head (afdcbc8).

Files with missing lines Patch % Lines
internal/header/header.go 95.23% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
+ Coverage   94.82%   94.85%   +0.02%     
==========================================
  Files          20       21       +1     
  Lines         947     1010      +63     
==========================================
+ Hits          898      958      +60     
- Misses         49       52       +3     
Files with missing lines Coverage Δ
content/language.go 100.00% <ø> (ø)
internal/header/header.go 95.23% <95.23%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kolkov
kolkov merged commit c6c3e81 into master Oct 27, 2026
11 of 12 checks passed
@kolkov
kolkov deleted the fix/drop-gddo branch October 27, 2026 13:48
kolkov added a commit to zekroTJA/ozzo-routing that referenced this pull request Oct 27, 2026
Brings in the gddo removal (go-ozzo#75) so the branch is up to date with master,
as the ruleset requires.
@kolkov kolkov mentioned this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant