Skip to content

Git designed for AI agents.

test: build test binaries without VCS stamping

Federico Elia1d8dc0edef97
diff --git a/cmd/graft-bench/graftbench_spec_test.go b/cmd/graft-bench/graftbench_spec_test.go
index 1cf850e..14b36c2 100644
--- a/cmd/graft-bench/graftbench_spec_test.go
+++ b/cmd/graft-bench/graftbench_spec_test.go
@@ -22,7 +22,7 @@ func specBuildBench(t *testing.T) string {
t.Helper()
bin := filepath.Join(t.TempDir(), "graft-bench")
- cmd := exec.Command("go", "build", "-o", bin, ".")
+ cmd := exec.Command("go", "build", "-buildvcs=false", "-o", bin, ".")
cmd.Dir = "."
out, err := cmd.CombinedOutput()
if err != nil {
diff --git a/cmd/graft-cache/cache_snapshot_spec_test.go b/cmd/graft-cache/cache_snapshot_spec_test.go
index 9691c3e..f201460 100644
--- a/cmd/graft-cache/cache_snapshot_spec_test.go
+++ b/cmd/graft-cache/cache_snapshot_spec_test.go
@@ -25,7 +25,7 @@ func buildGraftCacheSpec(t *testing.T) string {
}
bin := filepath.Join(t.TempDir(), name)
- cmd := exec.Command("go", "build", "-o", bin, ".")
+ cmd := exec.Command("go", "build", "-buildvcs=false", "-o", bin, ".")
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("building graft-cache failed: %v\n%s", err, out)
}
diff --git a/cmd/graft/search_spec_test.go b/cmd/graft/search_spec_test.go
index b58cff7..4154eb1 100644
--- a/cmd/graft/search_spec_test.go
+++ b/cmd/graft/search_spec_test.go
@@ -16,7 +16,7 @@ func specBuildGraft(t *testing.T) string {
t.Helper()
bin := filepath.Join(t.TempDir(), "graft")
- cmd := exec.Command("go", "build", "-o", bin, "github.com/feder-cr/open_scion/cmd/graft")
+ cmd := exec.Command("go", "build", "-buildvcs=false", "-o", bin, "github.com/feder-cr/open_scion/cmd/graft")
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("building graft: %v\n%s", err, out)
}
diff --git a/tools/graft-agents/superfan/chat/serve_spec_test.go b/tools/graft-agents/superfan/chat/serve_spec_test.go
index ce6a591..71e678f 100644
--- a/tools/graft-agents/superfan/chat/serve_spec_test.go
+++ b/tools/graft-agents/superfan/chat/serve_spec_test.go
@@ -42,7 +42,7 @@ const (
func specBuild(t *testing.T) string {
t.Helper()
bin := filepath.Join(t.TempDir(), "graft-superfan")
- cmd := exec.Command("go", "build", "-o", bin, specPkg)
+ cmd := exec.Command("go", "build", "-buildvcs=false", "-o", bin, specPkg)
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("go build %s: %v\n%s", specPkg, err, out)
}