Skip to content

chore(deps): replace archived gopkg.in/yaml.v3 with go.yaml.in/yaml/v3#240

Merged
beeme1mr merged 4 commits intoopen-feature:mainfrom
professorice:fix/replace-archived-yaml
Apr 28, 2026
Merged

chore(deps): replace archived gopkg.in/yaml.v3 with go.yaml.in/yaml/v3#240
beeme1mr merged 4 commits intoopen-feature:mainfrom
professorice:fix/replace-archived-yaml

Conversation

@professorice
Copy link
Copy Markdown
Contributor

Summary

The gopkg.in/yaml.v3 module (go-yaml/yaml) has been archived. This PR switches the direct dependency to the official yaml org maintained fork at go.yaml.in/yaml/v3.

  • go.mod: replaced direct gopkg.in/yaml.v3 v3.0.1 with go.yaml.in/yaml/v3 v3.0.4 (which was already present as an indirect dependency, so the upgrade pins to a version go mod tidy already trusted).
  • internal/cmd/compare.go: updated the import path. Dropped the redundant yaml alias since the new module's package is still named yaml.
  • go.sum: regenerated via go mod tidy.

The remaining indirect reference to gopkg.in/yaml.v3 is pulled in transitively via github.com/invopop/jsonschema -> github.com/wk8/go-ordered-map/v2 and is outside the control of this repository — it will go away once those upstreams migrate.

Fixes #190

Test plan

  • go mod tidy is clean
  • go build ./... succeeds
  • go test ./... passes
  • make ci passes locally (fmt, lint, test, verify-generate)

Made with Cursor

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the project from the archived gopkg.in/yaml.v3 dependency to the official go.yaml.in/yaml/v3 fork and updates several other module dependencies. Feedback suggests adding a replace directive in go.mod to ensure that transitive dependencies are also forced to use the new YAML module version, preventing version duplication in the dependency graph.

Comment thread go.mod
The gopkg.in/yaml.v3 module (go-yaml/yaml) has been archived. Switch
the direct dependency to the official yaml org maintained fork at
go.yaml.in/yaml/v3.

The remaining indirect reference to gopkg.in/yaml.v3 is pulled in
transitively via github.com/wk8/go-ordered-map/v2 and is outside the
control of this repository.

Fixes open-feature#190

Made-with: Cursor
Signed-off-by: Menelik Zafir <mzafir@launchdarkly.com>
@professorice professorice force-pushed the fix/replace-archived-yaml branch from 4a7fd7e to afc1c52 Compare April 27, 2026 13:38
@beeme1mr
Copy link
Copy Markdown
Member

Thanks for your help @professorice

beeme1mr and others added 2 commits April 27, 2026 21:14
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@beeme1mr beeme1mr added this pull request to the merge queue Apr 28, 2026
Merged via the queue into open-feature:main with commit 1cf2beb Apr 28, 2026
7 checks passed
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.

Replace archived yaml module

3 participants