Skip to content

Commit

Permalink
don't check the go version on docs.rs builds (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog authored Dec 11, 2023
1 parent 6ce7baf commit 0268a4d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/tx5-go-pion-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ fn go_check_version() {
let ver: f64 = String::from_utf8_lossy(&go_version.stdout[13..17])
.parse()
.expect("error parsing go version");
assert!(
ver >= 1.20,
"go executable version must be >= 1.20, got: {ver}",
);

// Only check the go version if this is NOT a DOCS_RS build.
if std::env::var("DOCS_RS").is_err() {
assert!(
ver >= 1.20,
"go executable version must be >= 1.20, got: {ver}",
);
}
}

fn go_unzip_vendor() {
Expand Down

0 comments on commit 0268a4d

Please sign in to comment.