Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 57e526b

Browse files
committed
fix: Update go-srp to not include build paths or build id
1 parent 2f2b8b1 commit 57e526b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "proton-api-rs"
33
authors = ["Leander Beernaert <lbb-dev@pm.me>"]
4-
version = "0.8.0"
4+
version = "0.8.1"
55
edition = "2021"
66
license = "AGPL-3.0-only"
77
description = "Unofficial implemention of proton REST API in rust"
@@ -14,7 +14,7 @@ categories = ["api-bindings"]
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
go-srp = {path = "go-srp", version = "0.1.4"}
17+
go-srp = {path = "go-srp", version = "0.1.5"}
1818
thiserror = "1"
1919
serde = {version ="1", features=["derive"]}
2020
serde_repr = "0.1"

go-srp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "go-srp"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2021"
55
authors = ["Leander Beernaert <lbb-dev@pm.me>"]
66
license = "AGPL-3.0-only"

go-srp/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ fn target_path_for_go_lib(platform: Platform) -> (PathBuf, PathBuf) {
7171
fn build_go_lib(lib_path: &Path, platform: Platform) {
7272
let mut command = Command::new("go");
7373

74+
command.env("CGO_LDFLAGS", "-Wl,--build-id=none");
7475
match platform {
7576
Platform::Desktop => {}
7677
Platform::Android(arch) => {
@@ -90,6 +91,8 @@ fn build_go_lib(lib_path: &Path, platform: Platform) {
9091
}
9192

9293
command.arg("build");
94+
command.arg("-ldflags=-buildid=");
95+
command.arg("-trimpath");
9396
command.arg("-o");
9497
command.arg(lib_path);
9598

0 commit comments

Comments
 (0)