From c7d46b475ea8c2b210710c49359647d5399eb82e Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 28 Nov 2024 22:58:59 +0000 Subject: [PATCH] build(rust): configure `cargo cross` to passthrough `GITHUB_SHA` (#7410) Our relays aren't semver-versioned like other components. So for the version reported to Sentry, we use the current Git SHA. This one is only available as an ENV variable because we are building within a docker container using `cargo cross`. By default, no env variables are passed through to the container. To fix this, we need to add a configuration file that explicitly opts-in to the necessary ENV variable. --- rust/Cross.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 rust/Cross.toml diff --git a/rust/Cross.toml b/rust/Cross.toml new file mode 100644 index 000000000..6f52863d9 --- /dev/null +++ b/rust/Cross.toml @@ -0,0 +1,2 @@ +[build.env] +passthrough = ["GITHUB_SHA"] # Allows binaries to embed the current SHA on CI.