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

Invalid go version '1.22.0': must match format 1.23 #1163

Open
sakshi099 opened this issue Sep 13, 2024 · 0 comments
Open

Invalid go version '1.22.0': must match format 1.23 #1163

sakshi099 opened this issue Sep 13, 2024 · 0 comments

Comments

@sakshi099
Copy link

Describe the Bug
Encountering an error when attempting to install : github.com/golang-migrate/migrate/v4/cmd/migrate@latest (in github.com/golang-migrate/migrate/[email protected]) , while no such issue exists with version v4.17.1 . Using Go version 1.19.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Current docker file :
    FROM golang:1.19-alpine
    RUN apk add --no-cache git
    RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

Expected Behavior
Expecting to successfully install and use version github.com/golang-migrate/migrate/[email protected]

Migrate Version
e.g. v4.18.1
Obtained by running: migrate -version

Go Version
e.g. go version go1.19 - alpine

Stacktrace

RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
#8 2.634 go: downloading github.com/golang-migrate/migrate/v4 v4.18.1
#8 2.751 go: downloading github.com/golang-migrate/migrate v3.5.4+incompatible
#8 2.785 go: github.com/golang-migrate/migrate/v4/cmd/migrate@latest (in github.com/golang-migrate/migrate/[email protected]): go.mod:3: invalid go version '1.22.0': must match format 1.23
#8 2.785 go.mod:5: unknown directive: toolchain
#8 ERROR: process "/bin/sh -c go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest" did not complete successfully: exit code: 1
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

No branches or pull requests

1 participant