-
Notifications
You must be signed in to change notification settings - Fork 29
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-Package-Store should know how to update itself #34
Comments
A general solution would be to get rid of the But I'm worried that might install too many unwanted binaries into |
By the way, until this issue is closed, updating Go Package Store manually is as easy as:
|
I could special-case the Go Package Store import path, and do something differently for it. But I feel that isn't as great as a more general solution. Perhaps Or maybe it can be a separate tab in Go Package Store. The current page can be considered a page for source code updates. The other tab can be a page for binary updates. Maybe it's better to keep the two more connected; updating the source of a binary perhaps should update the binary too. Thoughts on this are welcome. |
Oooh, I have a great idea! I could do the following. When updating repos that contain commands (Go packages with name "main"), I can check if such a binary exists in $GOPATH/bin already. If so, I can That way, it would update existing binaries in The only downside is that it's possible to mistakenly overwrite the wrong binary, in case of a command naming ambiguity. For example, imagine you've installed a command |
It might be possible to resolve that ambiguity by using This needs to be investigated and confirmed, but it's a great lead! Thanks @FiloSottile for the original idea! |
This is a feature I'd like to implement someday, and I'm using this issue to track the progress towards that. It's not done yet. I'd like to keep it open until it's done, if that's okay with you @Netherdrake. |
It should run
go build
&&go install
on itself.The text was updated successfully, but these errors were encountered: