fix(lib): add curl package prefix to upload script

This commit is contained in:
technofab 2024-05-13 12:33:33 +00:00
parent 2b60f365eb
commit 9185c975f0

View file

@ -118,7 +118,7 @@ with lib; rec {
builtins.map (nixlet:
with nixlet; ''
URL="https://gitlab.com/api/v4/projects/${projectId}/packages/generic/${name}/${version}/${name}.tar.gz"
if curl --output /dev/null --silent --head --fail --header "$AUTH_HEADER" $URL; then
if ${pkgs.curl}/bin/curl --output /dev/null --silent --head --fail --header "$AUTH_HEADER" $URL; then
echo "> Skipped ${name}@${version} because it already exists in the Package Registry"
else
echo "> Uploading new version ${name}@${version}"