Register the replay of issue 305, run in the catalogue module it lives in (hq ADR 0237)
A catalogue module is a Go module of its own, so the prover runs a replay in the directory its register entry names. R305 fails on the commit before the fix and passes on it.
This commit is contained in:
@@ -128,11 +128,11 @@ func run(r replays.Replay, repos, at string, fixed bool) (string, string) {
|
||||
return verdictOf(string(out), err, false)
|
||||
}
|
||||
mode := "-mod=vendor"
|
||||
if _, err := os.Stat(filepath.Join(tree, "vendor")); err != nil {
|
||||
if _, err := os.Stat(filepath.Join(tree, r.Module, "vendor")); err != nil {
|
||||
mode = "-mod=mod"
|
||||
}
|
||||
cmd := exec.CommandContext(ctx, "go", "test", "-count=1", "-run", "^"+r.Test, r.Package)
|
||||
cmd.Dir = tree
|
||||
cmd.Dir = filepath.Join(tree, r.Module)
|
||||
cmd.Env = append(os.Environ(), "GOFLAGS="+mode, "GOPRIVATE=git.novox.be")
|
||||
out, err := cmd.CombinedOutput()
|
||||
return verdictOf(string(out), err, r.Kind == replays.Gate)
|
||||
|
||||
Reference in New Issue
Block a user