Skip to content
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

source: add --no-checksums & --require-checksums flags #5563

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented May 26, 2023

@rjbou rjbou added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label May 26, 2023
@rjbou rjbou requested a review from kit-ty-kate August 29, 2023 17:32
@rjbou rjbou added PR: WAITING FOR REVIEW and removed PR: QUEUED Pending pull request, waiting for other work to be merged or closed labels Aug 29, 2023
@rjbou rjbou added this to To keep on hand in Opam 2.2.0 Aug 31, 2023
mk_flag ~cli (cli_from cli2_2) ["require-checksums"]
"Enforce checksum verification befor downloading sources.\
This is equivalent to setting $(b,\\$OPAMREQUIRECHECKSUMS) to \"true\"."
in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth sharing the flags definitions with the ones used in OpamArg.build_options ? (maybe that was too tedious to be worth it, in that case it's alright)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible to share it easily with build_options, (cf. d69eb84).
I've tried to move them from build options to global options, but we loose the ability to notify that some new commands now permit and use --*-checksum options (no possibility to describe cli validity fine grained). Cf ef3b1e2

@hannesm
Copy link
Member

hannesm commented Nov 7, 2023

Appreciated, and this looks great to me. As @AltGr mentioned, it may be useful to share some code. Thanks a lot.

…he counterpart of that is that we loose the fact that the newly effective options (in opam source for ex) are not flaggued as new in cli 2.2
@kit-ty-kate kit-ty-kate removed their request for review May 9, 2024 13:24
@rjbou rjbou added this to PR in Progress in Opam 2.3 via automation Jun 27, 2024
@rjbou rjbou added this to the 2.3 milestone Jun 27, 2024
@rjbou rjbou removed this from To keep on hand in Opam 2.2.0 Jun 27, 2024
@rjbou rjbou marked this pull request as draft July 10, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Opam 2.3
  
PR in Progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants