-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow updating of stale packages #9
Comments
This is a reasonable request, but it's going to be a little tricky at this time. First, there might be ambiguities, where it's unclear if a binary named
That's really the main concern right now. I have an idea for how to potentially get around this. When/if #6 is resolved, this might become more viable. I'll leave this open and add a "thinking" label for now. Meanwhile, someone on reddit shared the following unix-y way you can achieve this goal:
You can try that, maybe even make an alias for it if you do it often. |
Could the update option simply skip all ambiguous cases? |
@christophberger Yes, that's a possible workaround. However, instead of investing into workarounds, I think I'd rather resolve #6 and this can be solved more properly. Until then, the grep-cut-xargs solution should be okay. |
Good point. Waiting for #6... :) |
I discovered that Go binaries still include the source path that they were compiled from. This Reddit comment pointed me to this shell function which uses This looks like a sure-fire way of unambiguously determining the source project of a binary. |
@christophberger Thanks for sharing the info. I know they currently do. I already have a prototype of that working at https://godoc.org/github.com/shurcooL/play/200/cmd/importpathof (source code). It's been on my plans/TODO to take advantage of that:
However, using that information would mean a massive re-architecture of a huge portion of |
I just tried binstale, and the next thing I wanted was to update all the stale binaries. Maybe you could provide a flag (
-u
perhaps…) which can update the stale binaries, by invokinggo get -u
The text was updated successfully, but these errors were encountered: