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

go install installs old version #42

Closed
theory opened this issue Sep 30, 2021 · 5 comments
Closed

go install installs old version #42

theory opened this issue Sep 30, 2021 · 5 comments

Comments

@theory
Copy link

theory commented Sep 30, 2021

Wanted to install jv 5.0, but go install couldn't figure it out:

$ go version
go version go1.17.1 darwin/amd64
$ go install github.com/santhosh-tekuri/jsonschema/cmd/jv@v5 
go install: github.com/santhosh-tekuri/jsonschema/cmd/jv@v5: no matching versions for query "v5"

Using @latest works, but installs v1:

$ go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest
go: downloading github.com/santhosh-tekuri/jsonschema v1.2.4

Not sure if this is a go issue or if the repo needs a cmd/jv/go.mod file to fix it.

@theory
Copy link
Author

theory commented Sep 30, 2021

I guess it's because cmd/jv isn't versioned like the library is.

@santhosh-tekuri
Copy link
Owner

i am not sure whether go.mod should be added in cmd/jv

but noticed that following command works:

go install github.com/santhosh-tekuri/jsonschema/v5/cmd/jv@latest

@theory
Copy link
Author

theory commented Oct 1, 2021

Oh! Just need to put the v5 in the right place I guess. This stuff is so opaque.

@decentralgabe
Copy link

ran into this as well, would be good to add to the README

@santhosh-tekuri
Copy link
Owner

@decentralgabe this is already added into GitHub README in 6fcf576

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

3 participants