mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
fetchurl: warn on rev archives, resolves #32999
This commit is contained in:
parent
45351e6916
commit
6fad2ae94b
@ -118,7 +118,6 @@ if test -n "$showURLs"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
if test -n "$preferHashedMirrors"; then
|
||||
tryHashedMirrors
|
||||
fi
|
||||
@ -128,6 +127,16 @@ set -o noglob
|
||||
|
||||
success=
|
||||
for url in $urls; do
|
||||
if [ -z "$postFetch" ]; then
|
||||
case "$url" in
|
||||
https://github.com/*/archive/*)
|
||||
echo "warning: archives from GitHub revisions should use fetchFromGitHub"
|
||||
;;
|
||||
https://gitlab.com/*/-/archive/*)
|
||||
echo "warning: archives from GitLab revisions should use fetchFromGitLab"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
tryDownload "$url"
|
||||
if test -n "$success"; then finish; fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user