Skip to content

Commit 377be6c

Browse files
committed
fix: skip installing nala if it fails
1 parent 9f78cc7 commit 377be6c

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ export async function main(args: string[]): Promise<number> {
156156
}
157157

158158
if (isUbuntu()) {
159-
setupNala(getVersion("nala", undefined, osVersion), "", arch)
159+
try {
160+
setupNala(getVersion("nala", undefined, osVersion), "", arch)
161+
} catch (err) {
162+
warning((err as Error).toString())
163+
// continue with apt-get
164+
}
160165
}
161166

162167
// loop over the tools and run their setup function

0 commit comments

Comments
 (0)