fix(terraform): bootstrap node from gzip tarball (#82)

HCP Linux workers do not ship xz, so the plan-time Node download must use the gzip distro tarball.
This commit is contained in:
Adam Moussa 2026-08-27 22:25:04 +00:00 • committed by GitHub
parent c43bee214c
commit cdd810001d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,8 +30,9 @@ ensure_node() {
esac
tarball="node-v${version}-${os}-${arch}"
mkdir -p "${NODE_PREFIX}"
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.xz" \
| tar -xJ -C "${NODE_PREFIX}" --strip-components=1
# HCP Terraform Linux workers do not ship xz. Use the gzip tarball.
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.gz" \
| tar -xz -C "${NODE_PREFIX}" --strip-components=1
export PATH="${NODE_PREFIX}/bin:${PATH}"
}