-
Notifications
You must be signed in to change notification settings - Fork 370
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 check: Set with-test and with-doc to false by default #6335
base: master
Are you sure you want to change the base?
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 |
@@ -114,6 +114,8 @@ users) | |||
## Admin | |||
* ◈ 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* ✘ `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] |
Agree. Plus, as there is no way to request check for a single package there is nothing else to add. |
Queued on top of #6331
Currently
opam admin check
setswith-test
andwith-doc
to 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=false
andwith-doc=false
). It also gets rid of-i
which has no purpose anymore.Instead this PR introduces three more arguments:
--with-test
,--with-doc
and--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 check
without-i
currently, which makes the introduction of those replacements seem useless. What do you think?Related to #5805