-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6219 from rjbou/lint-59
Fix lint W59 with a local path that is not an archive
- Loading branch information
Showing
6 changed files
with
86 additions
and
24 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
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 |
---|---|---|
|
@@ -852,6 +852,7 @@ ${BASEDIR}/lint.opam: Warnings. | |
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Warnings. | ||
warning 59: url doesn't contain a checksum | ||
### # package with conf flag | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
|
@@ -864,7 +865,6 @@ dev-repo: "hg+https://[email protected]" | |
bug-reports: "https://nobug" | ||
url { src:"an-archive.tgz" } | ||
flags: conf | ||
### # package with conf flag | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Errors. | ||
error 46: Package is flagged "conf" but has source, install or remove instructions | ||
|
@@ -873,6 +873,7 @@ ${BASEDIR}/lint.opam: Errors. | |
${BASEDIR}/lint.opam: Errors. | ||
error 46: Package is flagged "conf" but has source, install or remove instructions | ||
# Return code 1 # | ||
### # package with git url | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
|
@@ -884,7 +885,53 @@ license: "ISC" | |
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
url { src:"git+https://a/repo" } | ||
### # package with git url | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Passed. | ||
### # package with local url | ||
### <repo/stuff> | ||
something | ||
### <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" | ||
### <add-url.sh> | ||
basedir=`echo "$BASEDIR" | sed "s/\\\\\\\\/\\\\\\\\\\\\\\\\/g"` | ||
cat << EOF >> lint.opam | ||
url { src:"file://$basedir/an-archive" } | ||
EOF | ||
### sh add-url.sh | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Passed. | ||
### # package with local archive url | ||
### <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" | ||
### <add-url.sh> | ||
basedir=`echo "$BASEDIR" | sed "s/\\\\\\\\/\\\\\\\\\\\\\\\\/g"` | ||
cat << EOF >> lint.opam | ||
url { | ||
src:"file://$basedir/an-archive.tgz" | ||
checksum: "md5=$(openssl md5 an-archive.tgz | cut -f2 -d' ')" | ||
} | ||
EOF | ||
### sh add-url.sh | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### opam lint ./lint.opam --check-upstream | ||
|
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