Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies, run go mod tidy, bump go version #8

Closed
wants to merge 1 commit into from
Closed

Bump dependencies, run go mod tidy, bump go version #8

wants to merge 1 commit into from

Conversation

SuperSandro2000
Copy link

go 1.16
go 1.20
Copy link
Owner

Choose a reason for hiding this comment

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

Is this strictly necessary?

Copy link
Author

Choose a reason for hiding this comment

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

To only track the dependencies we need, we need at least 1.17 but that's already EOL. Technically 1.20 also just turned EOL https://endoflife.date/go

Since github.com/peterbourgon/ff/v3 requires 1.20 anway, go will probably complain in some scenario that the go version is to low.

Copy link
Owner

Choose a reason for hiding this comment

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

Strictly speaking, versions in go.mod map to capabilities, not Go releases, so stuff like EOL doesn't really matter.

Copy link
Owner

Choose a reason for hiding this comment

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

Does this PR fix any specific problem?

Copy link
Author

Choose a reason for hiding this comment

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

Strictly speaking, versions in go.mod map to capabilities, not Go releases, so stuff like EOL doesn't really matter.

Since they changed this up in 1.22, I am not sure anymore. It's a bit of a mess.

Does this PR fix any specific problem?

Yeah, when using 1.16 or below, the unused dependencies are not removed from go.sum and clutter up depending projects.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, when using 1.16 or below, the unused dependencies are not removed from go.sum and clutter up depending projects.

go.sum isn't a lock file, it's more like an append-only checksum file. It's not used to calculate or define dependencies, it's only used to verify the integrity of downloaded dependencies. So not really anything that can get "cluttered" 😇

Absent specific e.g. CVEs or bug fixes in the DNS library, I'll pass on this. But thanks for the contribution!

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.

2 participants