Skip to content

Commit 93c9f80

Browse files
authored
fix(release-image): stamp stdlib/package.json with release version (AztecProtocol#24410)
1 parent ef9838d commit 93c9f80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

release-image/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ WORKDIR "/usr/src/yarn-project"
1818
# Ensure the correct version shows in aztec --version
1919
ARG VERSION
2020
RUN echo '{".": "'$VERSION'"}' > /usr/src/.release-please-manifest.json
21+
# Stamp the version into stdlib/package.json, which getPackageVersion() reads at runtime.
22+
RUN jq --arg v "$VERSION" '.version = $v' /usr/src/yarn-project/stdlib/package.json > /tmp/p.json \
23+
&& mv /tmp/p.json /usr/src/yarn-project/stdlib/package.json
2124

2225
# Stamp aztec_version into the shipped contract artifacts. The build-time stamp in
2326
# noir-projects/noir-contracts/bootstrap.sh writes "dev" unconditionally; $VERSION here is the authoritative release

0 commit comments

Comments
 (0)