Skip to content

Commit d450b01

Browse files
committed
add go mod tidy to build.rs
1 parent 7ac0268 commit d450b01

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)