mirror of https://github.com/aminya/setup-cpp.git
fix: fix ubuntu llvm cleanup
This commit is contained in:
parent
063ff00baf
commit
28befc3cbc
|
|
@ -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
|
|
@ -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"}`)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue