]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix release builds by updating the locked Rust lib version 16180/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Sep 2025 13:14:40 +0000 (15:14 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Sep 2025 14:40:17 +0000 (16:40 +0200)
commitb99706f376d7ec0a21214e0ec31182f324082560
tree79be0c8fd259d0451db0a98232ef0313f4f31b8e
parentc64b979bc0aef7d6351b3c29de7a6082530bcc00
dnsdist: Fix release builds by updating the locked Rust lib version

Since we are now dynamically setting the version of our internal Rust library
when generating the release tarball, `cargo` needs to update the `Cargo.lock`
file to reflect the new version, which is not possible if we are passing `--locked`:
```
error: the lock file /pdns/dnsdist-2.1.0-alpha0.870.master.gc64b979bc/dnsdist-rust-lib/rust/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.
```
This commit fixes that also updating the `Cargo.lock` file when generating the
release tarball so that `cargo` no longer needs to update the `Cargo.lock`.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
builder-support/dockerfiles/Dockerfile.dnsdist
pdns/dnsdistdist/meson-dist-script.sh