opam admin check: Set with-test and with-doc to false by default#6335
Conversation
|
I like this. |
281ec79 to
df17b06
Compare
df17b06 to
82450a7
Compare
|
After reflection i chose to not add new arguments The PR is now ready to review |
| * ◈ Add `opam admin compare-versions` to compare package versions for sanity checks [#6197 @mbarbin] | ||
| * [BUG] Fix `opam admin check` in the presence of the `with-dev-setup` variable [#6331 @kit-ty-kate - fix #6329] | ||
| * ✘ The `-i`/`--ignore-test-doc` argument has been removed from `opam admin check` [#6335 @kit-ty-kate] | ||
| * ✘ `opam admin check` now sets `with-test` and `with-doc` to `false` instead of `true` [#6335 @kit-ty-kate] |
There was a problem hiding this comment.
| * ✘ `opam admin check` now sets `with-test` and `with-doc` to `false` instead of `true` [#6335 @kit-ty-kate] | |
| * ✘ `opam admin check` now sets `with-test`, `with-doc`, and `with-dev-setup` to `false` instead of `true` [#6335 @kit-ty-kate] |
There was a problem hiding this comment.
with-dev-setup wasn't set at all before and has been set to false already in #6331
Agree. Plus, as there is no way to request check for a single package there is nothing else to add. |
82450a7 to
ad452a9
Compare
|
rebased above master |
Queued on top of #6331
Currently
opam admin checksetswith-testandwith-docto true by default, which in my opinion makes little sense, especially in light of #4541 as it does not take into account user behaviour at all but some hypothetical "what if someone had OPAMWITHTEST=1 and OPAMWITHDOC=1 always set in their environment".This draft PR flips the default for those two variables to use what the actual default everywhere else is (
with-test=falseandwith-doc=false). It also gets rid of-iwhich has no purpose anymore.Instead this PR introduces three more arguments:
--with-test,--with-docand--with-dev-setup. However in light of #4541 i'm not sure this is a good idea and i don't this anyone usesopam admin checkwithout-icurrently, which makes the introduction of those replacements seem useless. What do you think?Related to #5805