Skip to content

Commit e5b6bcc

Browse files
committed
fix: resolve cherry-pick conflicts
v4-next already superseded #20630's changes to aztec-up/bin/0.0.1/install and aztec-up/bootstrap.sh (modern color palette, pinned node version, guarded nvm source, _bg_pids, aztec-prefixed bin checks, test_macs), so those two files are kept at the v4-next version. The remaining hunks (aztec.sh inherit_errexit removal, barretenberg/ts cross_copy arg pass-through, qemu-utils) are retained.
1 parent 0754f22 commit e5b6bcc

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

aztec-up/bin/0.0.1/install

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@
88
set -euo pipefail
99

1010
# Colors
11-
<<<<<<< HEAD
1211
reset="\033[0m"
1312
g="\033[38;5;114m" # green
1413
y="\033[38;5;222m" # yellow
1514
b="\033[38;5;111m" # blue
1615
p="\033[38;5;176m" # purple
1716
r="\033[38;5;203m" # red
18-
=======
19-
r="\033[31m" # Red
20-
g="\033[32m" # Green
21-
y="\033[33m" # Yellow
22-
b="\033[34m" # Blue
23-
reset="\033[0m"
24-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
2517

2618
# Helper function to safely read version from versions file
2719
function get_version {
@@ -148,13 +140,8 @@ function install_node {
148140
fi
149141

150142
. "$HOME/.nvm/nvm.sh"
151-
<<<<<<< HEAD
152143
nvm install "$node_min_version"
153144
nvm alias default "$node_min_version"
154-
=======
155-
nvm install --lts
156-
nvm alias default lts/*
157-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
158145
}
159146

160147
function install_versions_file {
@@ -332,13 +319,8 @@ function main {
332319
dump_fail install_node
333320
echo_green "done."
334321

335-
<<<<<<< HEAD
336322
# Source nvm to ensure node is in PATH (if using nvm).
337323
[ -f "$HOME/.nvm/nvm.sh" ] && . "$HOME/.nvm/nvm.sh"
338-
=======
339-
# Source nvm to ensure node is in PATH.
340-
. "$HOME/.nvm/nvm.sh"
341-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
342324

343325
# Install noir
344326
echo -n "Installing nargo... "

aztec-up/bootstrap.sh

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,9 @@ function prep_test_mac {
166166
fi
167167

168168
# Cleanup background processes on exit.
169-
<<<<<<< HEAD
170169
# Note: can't use local - the trap fires after function scope is gone.
171170
_bg_pids=()
172171
trap 'kill "${_bg_pids[@]}" &>/dev/null || true' EXIT
173-
=======
174-
local pids=()
175-
trap 'kill "${pids[@]}" &>/dev/null || true' EXIT
176-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
177172

178173
# Start Verdaccio in offline mode (no uplinks), bound to all interfaces.
179174
cat > /tmp/verdaccio-mac-test.yaml <<EOF
@@ -195,21 +190,13 @@ logs: { type: stdout, format: pretty, level: warn }
195190
EOF
196191

197192
verdaccio --config /tmp/verdaccio-mac-test.yaml --listen 0.0.0.0:$verdaccio_port &>/dev/null &
198-
<<<<<<< HEAD
199193
_bg_pids+=($!)
200-
=======
201-
pids+=($!)
202-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
203194
while ! nc -z localhost $verdaccio_port &>/dev/null; do sleep 1; done
204195
echo "Verdaccio running on 0.0.0.0:$verdaccio_port"
205196

206197
# Serve bin/ directory over HTTP to mimic S3-hosted install scripts.
207198
python3 -m http.server $http_port --directory ./bin --bind 0.0.0.0 &>/dev/null &
208-
<<<<<<< HEAD
209199
_bg_pids+=($!)
210-
=======
211-
pids+=($!)
212-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
213200
while ! nc -z localhost $http_port &>/dev/null; do sleep 1; done
214201
echo "HTTP server running on 0.0.0.0:$http_port (serving ./bin/)"
215202
}
@@ -231,38 +218,24 @@ function install_on_mac_vm {
231218
# Point npm at local Verdaccio and scripts at local HTTP server.
232219
export npm_config_registry=http://$host_ip:$verdaccio_port
233220
export INSTALL_URI=http://$host_ip:$http_port
234-
<<<<<<< HEAD
235221
export INFRA_VERSION=0.0.1
236222
export NO_NEW_SHELL=1
237-
=======
238-
export NO_NEW_SHELL=1
239-
export NON_INTERACTIVE=1
240-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
241223
242224
touch \$HOME/.zshrc
243225
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
244226
. "\$HOME/.nvm/nvm.sh"
245227
246228
echo
247229
echo "Running aztec install script..."
248-
<<<<<<< HEAD
249230
bash <(curl -sL \$INSTALL_URI/0.0.1/aztec-install)
250-
=======
251-
VERSION=0.0.1 bash <(curl -sL \$INSTALL_URI/0.0.1/aztec-install)
252-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
253231
254232
# Fake fresh shell.
255233
export PATH="\$HOME/.aztec/current/bin:\$HOME/.aztec/current/node_modules/.bin:\$HOME/.aztec/bin:\$PATH"
256234
. "\$HOME/.nvm/nvm.sh"
257235
258236
# Verify installation.
259-
<<<<<<< HEAD
260237
aztec-nargo --version
261238
aztec-bb --version
262-
=======
263-
nargo --version
264-
bb --version
265-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
266239
aztec --version
267240
REMOTE_EOF
268241
}
@@ -283,29 +256,20 @@ export -f install_on_mac_vm launch_and_install_on_mac_vm
283256

284257
# Assumes a macos vm is already running.
285258
# Starts services, and runs install script on the mac vm via ssh.
286-
<<<<<<< HEAD
287259
function test_on_mac_vm {
288260
local mac_name="${1:?Mac vm name (e.g. 14)}"
289261
echo_header "aztec-up test_on_mac_vm"
290-
=======
291-
function test_mac {
292-
echo_header "aztec-up test_mac"
293-
local mac_name="${1:?Mac vm name (e.g. 14)}"
294-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
295262
prep_test_mac
296263
install_on_mac_vm $mac_name
297264
}
298265

299-
<<<<<<< HEAD
300266
function test_mac {
301267
local mac_name="${1:?Mac vm name (e.g. 14)}"
302268
echo_header "aztec-up test_mac"
303269
prep_test_mac
304270
launch_and_install_on_mac_vm $mac_name
305271
}
306272

307-
=======
308-
>>>>>>> 44e1ce22abb (fix: some mac install fixes)
309273
# Starts services, launches a mac vm for each version and runs install script via ssh.
310274
function test_macs {
311275
echo_header "aztec-up test_macs"

0 commit comments

Comments
 (0)