-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: add E73 for relative path on extra-files
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -952,7 +952,7 @@ pin-depends: [ | |
] | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Errors. | ||
error 65: URLs must be absolute: "./my/url/path", "/wrong/../mirror", "./../[email protected]", "/my/./../extrasource/path", "/my/extrasource..path.patch", "/my/../pinned/package" | ||
error 65: URLs must be absolute: "./my/url/path", "/wrong/../mirror", "./../[email protected]", "/my/./../extrasource/path", "/my/../pinned/package" | ||
# Return code 1 # | ||
### : W66: String that can't be resolved to bool in filtered package formula | ||
### <lint.opam> | ||
|
@@ -1157,3 +1157,29 @@ extra-source "double-file3" { | |
${BASEDIR}/lint.opam: Errors. | ||
error 72: Field 'extra-sources' contains duplicated checksums: "double-file have md5: 2 occurences and sha256: 3 occurences", "double-file2 have md5: 2 occurences" | ||
# Return code 1 # | ||
### : E73: Field 'extra-files' contains path with '..' | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
description: "Two words." | ||
authors: "the testing team" | ||
homepage: "egapemoh" | ||
maintainer: "[email protected]" | ||
license: "ISC" | ||
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
extra-source "double-file" { | ||
src:"https://git.url/repo.tgz" | ||
checksum:"md5=00000000000000000000000000000000" | ||
} | ||
extra-files: [ | ||
[ "./relative/path" "md5=00000000000000000000000000000000"] | ||
[ "/absolute/../relative/path" "md5=00000000000000000000000000000000"] | ||
[ "/absolute/path" "md5=00000000000000000000000000000000"] | ||
[ "extra-files..patch.patch" "md5=00000000000000000000000000000000"] | ||
] | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Errors. | ||
error 53: Mismatching 'extra-files:' field: "./relative/path", "/absolute/../relative/path", "/absolute/path", "extra-files..patch.patch" | ||
error 73: Field 'extra-files' contains path with '..': "/absolute/../relative/path" | ||
# Return code 1 # |