Skip to content

Commit 8d13818

Browse files
committed
fix: ensure nargo is always on PATH
1 parent 2e1a927 commit 8d13818

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: src/noir/devcontainer-feature.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"default": "nightly"
1313
}
1414
},
15-
"onCreateCommand": "nargo --version",
15+
"onCreateCommand": "echo $PATH && nargo --version",
1616
"containerEnv": {
17-
"PATH": "$_REMOTE_USER_HOME/nargo/bin:${PATH}"
17+
"NARGO_HOME":"/nargo",
18+
"PATH": "/nargo/bin:${PATH}"
1819
},
1920
"customizations": {
2021
"vscode": {
@@ -24,5 +25,4 @@
2425
]
2526
}
2627
}
27-
2828
}

Diff for: src/noir/install.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ set -e
33

44
apt update && apt install -y curl git tar gzip && rm -rf /var/lib/apt/lists/* && apt clean
55

6-
export NARGO_HOME="$_REMOTE_USER_HOME/nargo"
76
curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash
8-
$NARGO_HOME/bin/noirup -v $VERSION
9-
10-
PATH="$PATH:$NARGO_HOME/bin"
7+
noirup -v $VERSION

0 commit comments

Comments
 (0)