On 9 Aug 2018, at 00:09, Kevin Locke <ke...@kevinlocke.name<mailto:ke...@kevinlocke.name>> wrote:
Thanks for the explanation! Is there a way for me to update the locally installed packages (shfmt and its dependencies in this example) without installing additional dependencies which weren't initially installed? You need to target the package you want to update; go get -u mvdan.cc/sh/cmd/shfmt<http://mvdan.cc/sh/cmd/shfmt>. When you use “all” or “./…” or similar there is no way for the Go tool to know that you don’t want to update and build other things that were fetched as part of the original command. However, Rafal Jeczalik wrote a tool to figure out where binaries came from and update them. This might be what you’re looking for: https://github.com/rjeczalik/bin For updating dependencies of a thing as part of your development cycle, go get -u in that package should do it. //jb -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.