Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

warn user when installing an unstable main package #42

Open
myitcv opened this issue Nov 6, 2018 · 1 comment
Open

warn user when installing an unstable main package #42

myitcv opened this issue Nov 6, 2018 · 1 comment

Comments

@myitcv
Copy link
Owner

myitcv commented Nov 6, 2018

If the user uses gobin to install a main package that is not part of a module, then by definition the dependencies of that package are "unstable" (probably a better term).

Similarly, if a main package is part of a module, but that module definition is in some way incomplete (e.g. go mod tidy leaves changes in go.{mod,sum}), the results are "unstable".

We could/should warn the user about this somehow/somewhere.

@rogpeppe
Copy link
Collaborator

rogpeppe commented Nov 7, 2018

Warnings are problematic (do you see the warning if you're running gobin in a script, for example?) How about failing, and requiring a flag to force it to install anyway. Possible spellings: -f, -unstable, -force, -allow-unstable, ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants