pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

fix: pin cross to 0.2.5 for glibc 2.23 #368

Closed YOU54F closed 5 months ago

YOU54F commented 5 months ago

fixes #354

Cross was being retrieved from main for aarch64 linux targets, which compiles against 2.31 of glibc.

Pinning cross to 0.2.5 will result in an image using 2.23 glibc which you can see by running ldd --version

It can be confirmed, and checked easily against different image tags using the following in the Cross.toml

[target.aarch64-unknown-linux-gnu]
pre-build=[
    "ldd --version",
    "exit 1",
]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5"

This PR also introduces a cargo clean command in between builds in order to not impact issues in builds (spurious glibc errors)