fix: fix ubuntu llvm cleanup

This commit is contained in:
Amin Yahyaabadi 2025-02-23 14:47:47 -08:00
parent 063ff00baf
commit 28befc3cbc
6 changed files with 11 additions and 7 deletions

View File

@ -4,7 +4,11 @@ FROM setup-cpp-ubuntu AS setup-cpp-ubuntu-llvm
RUN node /usr/lib/setup-cpp/setup-cpp.js \
--compiler llvm && \
# cleanup
dnf clean all && \
nala autoremove -y && \
nala autopurge -y && \
apt-get clean && \
nala clean --lists && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ENTRYPOINT ["/bin/bash"]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -89,10 +89,10 @@ async function getAptArg(apt: string, pack: AptPackage) {
return `${name}=${version}`
case AptPackageType.Name:
if (version !== undefined && version !== "" && fallBackToLatest) {
warning(`Could not find package ${name} with version ${version}. Installing the latest version.`)
warning(`Could not find package '${name}' with version '${version}'. Installing the latest version.`)
}
return name
default:
throw new Error(`Could not find package ${name} ${version ?? ""}`)
throw new Error(`Could not find package '${name}' ${version ?? "with unspecified version"}`)
}
}