Git Product home page Git Product logo

Comments (7)

ldemailly avatar ldemailly commented on July 22, 2024 1

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.

mknyszek avatar mknyszek commented on July 22, 2024

CC @bcmills and @matloob via https://dev.golang.org/owners

from go.

bcmills avatar bcmills commented on July 22, 2024

(CC @samthanawalla)

from go.

haruyama480 avatar haruyama480 commented on July 22, 2024

There are several approaches to work.

  1. Specify a patch version in go directive, like go 1.22.0.
  2. Specify a toolchain name in toolchain directive, like toolchain go1.22.0. Note that go1.22 isn't a toolchain name.
  3. 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.

gopherbot avatar gopherbot commented on July 22, 2024

Change https://go.dev/cl/580217 mentions this issue: Require patch in GOTOOLCHAIN or download 1.X.0 otherwise.

from go.

gopherbot avatar gopherbot commented on July 22, 2024

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.

gopherbot avatar gopherbot commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.