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

git tags for 1.24 release is not semver and cannot go install it #390

Open
jchappelow opened this issue Sep 11, 2023 · 0 comments
Open

git tags for 1.24 release is not semver and cannot go install it #390

jchappelow opened this issue Sep 11, 2023 · 0 comments
Labels

Comments

@jchappelow
Copy link

jchappelow commented Sep 11, 2023

Describe the bug

The two latest release tags are v1.23 and v1.24. However, since these are not semver tags, go install can't install them via either @latest or @v1.24. To resolve this, please create a new tag called v1.24.0 at the same commit as v1.24.

To Reproduce

$ go install github.com/justjanne/powerline-go@latest
go: downloading github.com/justjanne/powerline-go v1.22.1
go: downloading github.com/shirou/gopsutil/v3 v3.22.3
go: downloading golang.org/x/text v0.3.4
go: downloading golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27
go: downloading golang.org/x/term v0.0.0-20201117132131-f5c789dd3221
go: downloading github.com/tklauser/go-sysconf v0.3.10
go: downloading github.com/tklauser/numcpus v0.4.0

$ go install github.com/justjanne/[email protected]
go: github.com/justjanne/[email protected]: no matching versions for query "v1.24"

$ go install github.com/justjanne/[email protected]
go: github.com/justjanne/[email protected]: github.com/justjanne/[email protected]: invalid version: unknown revision v1.24.0

I can only install the version at the v1.24 commit like this:

$ go install -v github.com/justjanne/powerline-go@df3475d6
go: downloading github.com/justjanne/powerline-go v1.22.2-0.20230525090453-df3475d6c9ef
github.com/justjanne/powerline-go/exitcode
golang.org/x/sys/internal/unsafeheader
golang.org/x/text/transform
golang.org/x/sys/unix
github.com/justjanne/powerline-go/powerline
gopkg.in/ini.v1
golang.org/x/text/width
github.com/tklauser/numcpus
github.com/shirou/gopsutil/v3/mem
golang.org/x/term
github.com/tklauser/go-sysconf
github.com/shirou/gopsutil/v3/cpu
github.com/shirou/gopsutil/v3/process
github.com/justjanne/powerline-go

Note that Go's semantic import versioning is calling this v1.22.2-0.20230525090453-df3475d6c9ef

Expected behavior

Either go install github.com/justjanne/powerline-go@latest or go install github.com/justjanne/[email protected] should work to install powerline-go for the latest release.

Environment (please complete the following information):

Go 1.21

@jchappelow jchappelow added the bug label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant