Skip to content

Commit 801ebf8

Browse files
committed
fix: untildify the installation path
1 parent 21b816c commit 801ebf8

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
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.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"hasha": "^5.2.2",
4545
"mri": "^1.2.0",
4646
"semver": "^7.3.5",
47+
"untildify": "^4.0.0",
4748
"which": "^2.0.2"
4849
},
4950
"pnpm": {

pnpm-lock.yaml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { setupNinja } from "./ninja/ninja"
1414
import { setupOpencppcoverage } from "./opencppcoverage/opencppcoverage"
1515
import { setupPython } from "./python/python"
1616
import mri from "mri"
17+
import untildify from "untildify"
1718

1819
import semverValid from "semver/functions/valid"
1920
import { getVersion } from "./default_versions"
@@ -83,7 +84,7 @@ export async function main(args: string[]): Promise<number> {
8384
const arch = opts.architecture ?? process.arch
8485

8586
// the installation dir for the tools that are downloaded directly
86-
const setupCppDir = process.env.SETUP_CPP_DIR ?? "~/setup_cpp"
87+
const setupCppDir = process.env.SETUP_CPP_DIR ?? untildify("~/setup_cpp")
8788

8889
// report messages
8990
const successMessages: string[] = []

0 commit comments

Comments
 (0)