Skip to content

Using go mod tidy on v1.21+ breaks usage of older Go mod #63370

@andydotxyz

Description

@andydotxyz

What version of Go are you using (go version)?

v1.21.x

Does this issue reproduce with the latest release?

Use any v1.21 and then compare with any older version (of which many are supported).

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOOS='darwin'
GOARCH='arm64'

What did you do?

  • Using a Go 1.21 or newer call "go mod tidy"
  • Open this project on an earlier Go and call "go mod tidy" again

Command will fail to run

What did you expect to see?

Compatibility

What did you see instead?

go: errors parsing go.mod:
/Users/andy/Code/Fyne/fyne/go.mod:3: invalid go version '1.21.1': must match format 1.23

More

I do not know what can be done here, but this is taking the assertion that a metadata change does not impact the backwards compatibility promise to the extreme.
In one release a new format was introduced in a way that in the prior release it was impossible to use.

Can't we at least have a migration path so that people working on a team do not all have to upgrade at the same time?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions