Skip to content

Commit 58d32a8

Browse files
committed
fix: create kvdb arch workspace packages before yarn install
npm_install_deps does a clean 'yarn install --immutable' on a cache miss; the @aztec/kvdb-<arch> optionalDependencies must resolve to the local ts/packages/* workspaces (created by prepare_arch_packages) or the install 404s against npm. Run prepare_arch_packages before npm_install_deps.
1 parent d83a271 commit 58d32a8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

native-packages/kvdb/bootstrap.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ function build_native {
2323
function build {
2424
echo_header "kvdb build"
2525
build_native
26+
# Create the per-arch workspace packages BEFORE installing: npm_install_deps does
27+
# a clean `yarn install --immutable` on a cache miss, and the @aztec/kvdb-<arch>
28+
# optionalDependencies must resolve to these local workspaces (not npm) or the
29+
# install 404s.
30+
(cd ts && ./scripts/prepare_arch_packages.sh "$(arch)-$(os)=build/$(arch)-$(os)/$NAPI_BINARY")
2631
npm_install_deps
2732
yarn build
28-
(cd ts && ./scripts/prepare_arch_packages.sh "$(arch)-$(os)=build/$(arch)-$(os)/$NAPI_BINARY")
2933
}
3034

3135
function clean {

0 commit comments

Comments
 (0)