Comments (7)
it's worse in the case of no explicit TOOLCHAIN (if you set a toolchain I think it's reasonable that it'd be fully qualified) but completely baffling when happening indirectly through a go.mod
entry that breaks all previous use of go x.y
before go 1.21
See details in #62278 (comment)
from go.
CC @bcmills and @matloob via https://dev.golang.org/owners
from go.
(CC @samthanawalla)
from go.
There are several approaches to work.
- Specify a patch version in go directive, like
go 1.22.0
. - Specify a toolchain name in toolchain directive, like
toolchain go1.22.0
. Note thatgo1.22
isn't a toolchain name. - Run
export GOTOOLCHAIN='go1.22.0+auto'
for your environments that are trying to install newer go toolchain.
The Go Version, like1.22
, is called 'language version'.
Specifying language version in go directive without toolchain directive will make developers which need to download newer toolchain fail. I hope go command or any document notes that.
from go.
Change https://go.dev/cl/580217 mentions this issue: Require patch in GOTOOLCHAIN or download 1.X.0 otherwise.
from go.
Change https://go.dev/cl/583797 mentions this issue: [release-branch.go1.21] cmd/go: download 1.X.0 instead of 1.X during toolchain upgrade.
from go.
Change https://go.dev/cl/583915 mentions this issue: [release-branch.go1.22] cmd/go: download 1.X.0 instead of 1.X during toolchain upgrade.
from go.
Related Issues (20)
- proposal: encoding/hex: use SIMD instructions for large blobs HOT 9
- x/pkgsite: package removal request for github.com/chaitin/traefik-t1k
- cmd/gofmt: Comments are incorrectly moved across commas HOT 2
- x/tools/gopls/internal/test/integration/modfile: TestUnknownRevision/bad/nested/default failures HOT 4
- x/tools/gopls/internal/test/integration/modfile: TestGovimModReadonly/default failures HOT 4
- build: golang.org/x/tools/gopls/internal/cmd failures HOT 3
- x/tools/gopls/internal/cmd: TestCheck failures HOT 3
- x/tools/go/ssa/builder.go: panic("nil underlyin") while executing *ssa.Program.Build() HOT 5
- runtime/pprof: better generic type information in pprof stack traces HOT 4
- proposal: x/crypto/ssh: add SSHSIG support HOT 1
- cmd/link: issues with Xcode 16 beta [1.22 backport] HOT 7
- net/http: `expect: 100-continue` handling is broken in various ways [1.21 backport] HOT 3
- net/http: `expect: 100-continue` handling is broken in various ways [1.22 backport] HOT 3
- proposal: treat interface value with type but without data as nil HOT 2
- x/tools/go/astutil: PathEnclosingInterval omits FuncType for intervals in the function signature HOT 3
- proposal: encoding/json: avoid massive escape costs HOT 3
- x/telemetry: improvements to the front page at telemetry.go.dev HOT 4
- x/tools/gopls: "not found" SemanticTokens bug (via telemetry) HOT 2
- x/telemetry: `gotelemetry view` graphs have data from the future
- x/telemetry: add support for histogram counters and charts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go.