-
Notifications
You must be signed in to change notification settings - Fork 368
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
opam pin fails adding new or multiple packages when --no-action is present #3199
Comments
Could you give details on the interaction you are expecting ? By 'new', do you mean a package without metadata ? This works:
|
@kit-ty-kate Do you have any details on this ? I confirm that you are expecting the right thing from |
Oh sorry I missed your first ping. Hum, well your example above doesn't work if you are using docker for instance. Of course if we add |
Hmm, maybe it's the wording that is wrong then. The message should be understood as "don't prompt for (re)installation or removal of affected packages", not "don't prompt for (re)installation or removal of affected packages". The important part is that it won't run the installation actions, not the fact that it will prompt (for other reasons). Was that the unclear part, and should we just clarify the wording, or do you think more is needed ? |
ping @kit-ty-kate |
Would this be better, getting rid of the word "prompt" completely?
|
For now the opam pin command used with the --no-action/-n argument fails if the package pinned is new or if we try to add multiple packages from a single directory.
This behaviour does not really matches the intended purpose of --no-action, namely:
Moreover the default behaviour in opam 1.2.2 in regards to adding new package was to add them anyway. --no-action didn't really play any role there but imho for scripts it is important to keep this behaviour and to be able to pin packages without installing them.
The text was updated successfully, but these errors were encountered: