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

Do not use toolchain directive #5660

Open
pellared opened this issue Jul 31, 2024 · 6 comments
Open

Do not use toolchain directive #5660

pellared opened this issue Jul 31, 2024 · 6 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pellared
Copy link
Member

pellared commented Jul 31, 2024

I think that go 1.21.0 is required for the bump and it should not be a problem..

However, I do not think we need to add toolchain go1.22.5. I think it would be better to avoid toolchain consistently in all our Go modules.

Originally posted by @pellared in #5643 (comment)

We should have have some "linter" that would detect such changes.

@pellared pellared changed the title Remove toolchain directive Do not use toolchain directive Jul 31, 2024
@pellared pellared added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 1, 2024
pellared added a commit that referenced this issue Aug 1, 2024
@pulin-dani
Copy link

is this already fixed and merged?

@pellared
Copy link
Member Author

pellared commented Aug 4, 2024

is this already fixed and merged?

From issue description:

We should have have some "linter" that would detect such changes

@MrAlias
Copy link
Contributor

MrAlias commented Aug 19, 2024

With the upgrade of Go to 1.23, the use of toolchain seems to be required: #5720 (comment)

@dmathieu
Copy link
Member

Closing this, as with Go 1.23, the toolchain directive is required and added automatically.

@dmathieu dmathieu closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
@pellared
Copy link
Member Author

pellared commented Sep 5, 2024

Closing this, as with Go 1.23, the toolchain directive is required and added automatically.

It is still not required. See: #5784

There are more people complaining on the go get and go mod tidy behavior so maybe eventually they will stop automatically adding the toolchain directive. See: golang/go#65847

@pellared pellared reopened this Sep 5, 2024
@bobrik

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants