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

Installed binary contains version number in name #62

Closed
HaraldNordgren opened this issue Jul 28, 2018 · 5 comments
Closed

Installed binary contains version number in name #62

HaraldNordgren opened this issue Jul 28, 2018 · 5 comments

Comments

@HaraldNordgren
Copy link

HaraldNordgren commented Jul 28, 2018

Running

go get -u gopkg.in/alecthomas/gometalinter.v1

I get an installed binary called gometalinter.v1. I would expect to simple call a binary called gometalinter directly, but that does not work.

Is that something that can be fixed in gopkg? Or is this dependent on logic within go get?

@HaraldNordgren HaraldNordgren changed the title Install binary contains version number in name Installed binary contains version number in name Jul 28, 2018
@niemeyer
Copy link
Owner

It's in go get, but you can workaround this by using a subpath.

@HaraldNordgren
Copy link
Author

@niemeyer Can you give an example of what that looks like, please?

@niemeyer
Copy link
Owner

@HaraldNordgren Ah, sorry that it wasn't clear. It should work the same as when you're using any other import paths: example.com/foo.v1/bar

@HaraldNordgren
Copy link
Author

I don't quite remember why I needed this back in 2018, but I think my intention wash to be able to run the binary as ./gometalinter and instead it would need to be run as ./gometalinter.v1.

But maybe that's not accurate though?

@niemeyer
Copy link
Owner

Yeah, that's what was explained above. It gets its name from the last element of its own path.

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

2 participants