chore(deps): Switch from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 in /tools#3907
chore(deps): Switch from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 in /tools#3907gmlewis merged 1 commit intogoogle:masterfrom
gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 in /tools#3907Conversation
| github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect | ||
| github.com/perimeterx/marshmallow v1.1.5 // indirect | ||
| github.com/woodsbury/decimal128 v1.3.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect |
There was a problem hiding this comment.
Is there some other dependency that is still requiring that this be imported into this project?
There was a problem hiding this comment.
We can check:
$ go mod why -m gopkg.in/yaml.v3
# gopkg.in/yaml.v3
tools/metadata
github.com/getkin/kin-openapi/openapi3
github.com/go-openapi/jsonpointer
github.com/go-openapi/swag
gopkg.in/yaml.v3After upgrading the github.com/go-openapi/jsonpointer package, gopkg.in/yaml.v3 will disappear:
go get -u github.com/go-openapi/jsonpointer
go mod tidy
There was a problem hiding this comment.
Even after running this iteratively, "gopkg.in/yaml.v3" acts like a virus and we can't fully get rid of it yet:
...
$ go get -u github.com/getkin/kin-openapi/openapi3
...
$ go get -u github.com/getkin/kin-openapi/openapi3.text
...
$ go get -u github.com/stretchr/testify/assert
...
$ go get -u github.com/stretchr/testify/assert/yaml
...
$ go mod tidy
$ go mod why -m gopkg.in/yaml.v3
# gopkg.in/yaml.v3
tools/metadata
github.com/getkin/kin-openapi/openapi3
github.com/getkin/kin-openapi/openapi3.test
github.com/stretchr/testify/assert
github.com/stretchr/testify/assert/yaml
gopkg.in/yaml.v3
There was a problem hiding this comment.
Did you try a go mod replace ?
The lib are pure port of go-yaml/yaml
There was a problem hiding this comment.
it doesn't make sense in a lib like yours, I feel. go mod replace is good for program using your lib.
Testify PR/issue is stale
There was a problem hiding this comment.
No, I didn't try that. Do you want to submit a PR, @ccoVeille ?
There was a problem hiding this comment.
No, I didn't try that. Do you want to submit a PR, @ccoVeille ?
As I stated here, it won't be useful for you guys
As go-github is a library and not a software
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3907 +/- ##
=======================================
Coverage 92.45% 92.45%
=======================================
Files 203 203
Lines 14980 14980
=======================================
Hits 13850 13850
Misses 927 927
Partials 203 203 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@scop - do you want to attempt to bring this PR up-to-date by resolving merge conflicts and trying out the advice posted above from @alexandear, or do you want to start over on a new PR and close this one? |
0872268 to
1dfea0c
Compare
The latter is a maintained fork of the former. https://github.com/yaml/go-yaml#project-status While at it, upgrade from 3.0.1 to 3.0.4. 3.0.1 are identical, 3.0.1..3.0.2 diff between upstreams: https://gist.github.com/scop/57f94f2bf97fb6a2d01349fa59d88530
1dfea0c to
7133b11
Compare
|
Rebased against current master. I did not touch the remaining (note: indirect) dependency because getting rid of it requires updating another package whose effects I have not examined at all. I suggest someone do it in a separate PR if/when desired. |
gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 in /tools
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @scop!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra
|
Thank you, @stevehipwell! |
The latter is a maintained fork of the former, https://github.com/yaml/go-yaml#project-status
While at it, upgrade from 3.0.1 to 3.0.4.
3.0.1 are identical, 3.0.1..3.0.2 diff between upstreams: https://gist.github.com/scop/57f94f2bf97fb6a2d01349fa59d88530