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

lint: add W74 to detect 'pin-depends' packages that are not present in 'depends' nor in 'depopts' #6317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Nov 28, 2024

fix #5795
This lint doesn't detect when the versions mismatch.

@rjbou rjbou added this to the 2.4.0~alpha1 milestone Nov 28, 2024
kit-ty-kate
kit-ty-kate previously approved these changes Nov 28, 2024
|> List.map OpamPackage.Name.to_string
in
cond 74 `Warning
"Field 'pin-depends' contains packages that are not in 'depends' nor in \
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Field 'pin-depends' contains packages that are not in 'depends' nor in \
"Field 'pin-depends' contains packages that are neither in 'depends' nor in \

@@ -60,6 +60,7 @@ users)
## Source

## Lint
* [NEW] Add W74 to detect `pin-depends` packages that are not present in `depends` nor `depopts` field [#6317 @rjbou - fix #5795]
Copy link
Member

@kit-ty-kate kit-ty-kate Nov 28, 2024

Choose a reason for hiding this comment

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

Suggested change
* [NEW] Add W74 to detect `pin-depends` packages that are not present in `depends` nor `depopts` field [#6317 @rjbou - fix #5795]
* [NEW] Add W74 to detect `pin-depends` packages that are neither present in the `depends` nor `depopts` field [#6317 @rjbou - fix #5795]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

should pin-depends imply depends ?
2 participants