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

go mod tidy and update Dockerfile go version #60

Merged
merged 3 commits into from
May 8, 2024
Merged

Conversation

dhij
Copy link
Contributor

@dhij dhij commented May 8, 2024

No description provided.

@dhij dhij requested review from timoreimann, llDrLove and kperath May 8, 2024 17:37
@dhij dhij force-pushed the dhij/update-go-mod branch from a4debd2 to 60aa09b Compare May 8, 2024 18:04
@@ -1,36 +1,38 @@
module github.com/digitalocean/do-operator

go 1.21
go 1.22.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this match the toolchain value ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope, not necessarily; when we specify go 1.22 and run go mod tidy, this is what we get by default. this is how they are for many other repos with go 1.22 update (ex. CCM go.mod)

here are the two docs I have on go toolchain: https://go.dev/doc/toolchain (not as helpful as the other doc) and https://news.ycombinator.com/item?id=36455694 (the first answer). AFAIU the go directive is still like the minimum go toolchain version while the toolchain directive is used to specify the precise compiler version that should be used..?

Copy link
Contributor

@timoreimann timoreimann left a comment

Choose a reason for hiding this comment

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

The toolchain thing is indeed a bit unexpected, but as you said it seems to be correct that way.

@dhij dhij merged commit eedc264 into main May 8, 2024
2 checks passed
@dhij dhij deleted the dhij/update-go-mod branch May 8, 2024 19:05
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.

3 participants