Skip to content

Commit be0251e

Browse files
authored
Merge pull request #47 from magiodev/fix/v22_go_mod_tidy
add go mod tidy to build.rs
2 parents 47d48d0 + d450b01 commit be0251e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/osmosis-test-tube/build.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ fn build_libosmosistesttube(out: PathBuf) {
9898
return;
9999
}
100100
let manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
101+
102+
let tidy_status = Command::new("go")
103+
.current_dir(manifest_dir.join("libosmosistesttube"))
104+
.arg("mod")
105+
.arg("tidy")
106+
.spawn()
107+
.unwrap()
108+
.wait()
109+
.unwrap();
110+
111+
if !tidy_status.success() {
112+
panic!("failed to run 'go mod tidy'");
113+
}
114+
101115
let exit_status = Command::new("go")
102116
.current_dir(manifest_dir.join("libosmosistesttube"))
103117
.arg("build")

0 commit comments

Comments
 (0)