-
Notifications
You must be signed in to change notification settings - Fork 358
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 admin add-constraint
allow to specify a list of excluded packages
#3077
Comments
That being said I don't think you want to specify a list of excluded packages, you want to specify a list of affected packages, namely those whose build you witnessed failing. A simple way would be to turn the synopsis into:
|
Another useful thing would be to output on stdout the affected files (possibly behind a cli switch). |
And to be clear this should also add the constraint on the given packages even if the constraint is not currently in the specified package's deps. |
I don’t personally have time to dedicate to this at the moment but this seems to be "workaroundable" with a simple bash script such as:
|
Yes it's always workaroundable with a dose of shell scripting :-( The add constraint everywhere and then commit only those files you want to change works. But it's a tad annoying. For reference in this case combining with @dra27's
|
just in case you want to have a shot at doing it, it seem relatively easy: opam/src/client/opamAdminCommand.ml Line 1036 in 2b75470
This would be just a matter of a couple of ifs and a new argument around here I believe |
After five years, I'm still very very interested in having a good workflow for fixing massive opam-repository failures (see e.g. ocaml/opam-repository#22598) and this is part of it. Could this please be put on a release target ? |
Thank you @rjbou ! I missed the resolution. Look forward to integrate that in my tooling. |
Currently this affects all
--depend-on
packages but you may want to specify exceptions. Alternatively you may want to specify only a few that should be affected.The text was updated successfully, but these errors were encountered: