-
Notifications
You must be signed in to change notification settings - Fork 11
Proposal: global/module context awareness #69
Comments
Apologies for the delay in replying, I had closed Octobox and so was not receiving notifications for this repo. Thanks for raising this. However I don't think this is feasible. It's something that, along with @rogpeppe and @mvdan, we mused over during early discussions. Having There are a number of reasons for this, chief among them being that if we did automatically infer the mode then it would be impossible to run "global" commands whilst in the context of a module. Unless I misunderstand the suggestion? |
The suggestion stems from finding my own use of The global capabilities are nice, but they seem secondary to the module mode. Being able to install a specific go program at a specific version globally is a nice capability (one that Another reason to default to module mode is prior art: Possible solutions I see would be to switch from a |
Thanks for the comprehensive reply. I've not forgotten about this issue; just a bit busy with other things right now, so please bear with me. |
No problem! Sorry, sort of poor taste of me to show up and be like 'here are reasons to change your flags around'. Although a little more cumbersome imo, the current explicite flags work and are simple. |
Not at all. It's great to have feedback/experience reports from others. So thank you for contributing. |
Having to remember the
-m
and-m -run
flag feels cumbersome for some reason. Would it be possible to infer which modegobin
is running in based on thecwd
? (e.g. in a folder tree of a module, infer-m
. Outside of a go module project tree, globalgobin
?The text was updated successfully, but these errors were encountered: