Skip to content

Commit 6c30d0c

Browse files
committed
fix: always fetch the latest version
1 parent d2a1553 commit 6c30d0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go-runner/src/builder/patcher.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ pub fn patch_imports<P: AsRef<Path>>(
3434
let mut cmd: Command = Command::new("go");
3535
cmd.arg("get")
3636
.arg("github.com/CodSpeedHQ/codspeed-go@cod-1172-create-codspeed-go-repository-with-the-compat-layer")
37+
// Bypass Go proxy cache to fetch directly from source - prevents issues with
38+
// cached versions that may have incorrect module paths or outdated content
39+
.env("GOPROXY", "direct")
3740
.current_dir(folder);
3841

3942
let output = cmd.output().context("Failed to execute 'go get' command")?;

0 commit comments

Comments
 (0)