Skip to content

Commit

Permalink
fix(interop/rust/wasm): bump version to use chrome 115 (#273)
Browse files Browse the repository at this point in the history
Bump rust-libp2p v0.52 interop version to include
libp2p/rust-libp2p#4383 which fixes issue in
libp2p/go-libp2p#2506.
  • Loading branch information
mxinden authored Aug 24, 2023
1 parent eebc07b commit 54fe78c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
30 changes: 9 additions & 21 deletions multidim-interop/impl/rust/v0.52/Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
image_name := rust-v0.52
version := 0.52.2
commitSha := 54fa53af393adac83f9aab273c3d30efbc31ba57

all: image.json chromium-image.json

chromium-image.json: verify-checksum rust-libp2p-${version}
cd rust-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.chromium .
chromium-image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.chromium .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@

image.json: verify-checksum rust-libp2p-${version}
cd rust-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.native .
image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.native .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@

rust-libp2p-${version}: rust-libp2p-${version}.zip
unzip -o rust-libp2p-${version}.zip
mv rust-libp2p-libp2p-v${version} rust-libp2p-${version}
rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip
unzip -o rust-libp2p-${commitSha}.zip

rust-libp2p-${version}.zip:
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/libp2p-v${version}.zip"

# Run `make version.lock` to generate this lock file. This file should be commited.
# This locks the exact contents of the specified version. This lets us use the
# human readable name while still making sure the contents don't change.
version.lock: rust-libp2p-${version}.zip
shasum -a 256 rust-libp2p-${version}.zip > $@

verify-checksum: rust-libp2p-${version}.zip
shasum -a 256 -c version.lock

.PHONY: clean all verify-checksum
rust-libp2p-${commitSha}.zip:
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip"

clean:
rm image.json
Expand Down
1 change: 0 additions & 1 deletion multidim-interop/impl/rust/v0.52/version.lock

This file was deleted.

0 comments on commit 54fe78c

Please sign in to comment.