-
Notifications
You must be signed in to change notification settings - Fork 359
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
Stop populating opam file with extra-files #5564
Conversation
1f093cf
to
c668919
Compare
fix #5013 |
c668919
to
63b9546
Compare
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.
Good, this ends a "transition period" that was really much too long :)
looks good to me, but I'd as well be happy if you point me to the rebased PR once #5561 is merged :) |
aaa554c
to
a3bdcfc
Compare
f389e77
to
70d1cf7
Compare
master_changes.md
Outdated
|
||
## Repository | ||
* Mitigate curl/curl#13845 by falling back from --write-out to --fail if exit code 43 is returned by curl [#6168 @dra27 - fix #6120] | ||
* When loading a repository, no more automatically populate `extra-files:` field with found files in `files/` [#5564 @rjbou] |
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.
* When loading a repository, no more automatically populate `extra-files:` field with found files in `files/` [#5564 @rjbou] | |
* When loading a repository, stop automatically populate `extra-files:` field with found files in `files/` [#5564 @rjbou] |
70d1cf7
to
e82bad9
Compare
rebased |
e82bad9
to
cdc869e
Compare
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.
lgtm otherwise
master_changes.md
Outdated
@@ -249,6 +251,8 @@ users) | |||
## opam-state | |||
* `OpamStateConfig.opamroot_with_provenance`: restore previous behaviour to `OpamStateConfig.opamroot` for compatibility with third party code [#6047 @dra27] | |||
* `OpamSwitchState.{,reverse_}dependencies`: make `unavailable` a non-optional argument to enforce speedups when availability information is not needed [#5317 @kit-ty-kate] | |||
* `OpamFilteTools.add_aux_files`: ignore non registered extra-files [#5564 @@rjbou] |
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.
the ""new"" optional argument should be added to the changelog
cdc869e
to
36c63b4
Compare
abe29d8
to
04cbf27
Compare
Updated opam-rt, should be good by now. The corresponding PR in opam-rt (ocaml-opam/opam-rt#78) should be merged in the same time. |
04cbf27
to
04d3023
Compare
Tests fixed! |
04d3023
to
f976365
Compare
updated |
f976365
to
78fb5d4
Compare
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.
Some suggestions for the re-wording in the manual - I find it confusing that we refer to the field as being mandatory, when what we're really meaning is that referring to each file in the field is mandatory.
I'm uneasy that we change this behaviour with no backwards compatibility - i.e. there are (CI) workflows which work today with opam 2.2 which unconditionally stop working with opam 2.3. That said, from a security standpoint it's obviously much better and the fix required for 2.3 compatibility is obviously completely compatible with older versions. So let's just ensure that the announcements for 2.3 make that crystal clear!
It was at the origin a temporary thing, to transition. But it stayed so long that it became kind of as a feature.
Yes, plus there is the command |
…:' automatically from 'files/' directory
125868c
to
9a221be
Compare
Thanks a lot! |
Current behaviour is at lint stage, if an extra-files is found in
files
directory, but not in the opam file, it is added in the opam file automatically.This behaviour is removed, all extra-files need to be declared in opam file.
/cc @hannesm @reynir