aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/vcs.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-10-22 15:41:03 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-22 15:41:03 +0200
commit084e388155d4ea60d54e44b90cd10eef660a5b76 (patch)
tree5a072ff66df7d401257da468a8529b172ab9b285 /pkg/vcs/vcs.go
parenta2bdbd8c37841cc507a2ad59f25d90d6467e5858 (diff)
pkg/vcs: make EnvForCommit return full compiler path
All callers of EnvForCommit need the compiler path, so move this logic into EnvForCommit to avoid duplication. Also simplifies tests because test impl can now return an empty compiler (which should be unused).
Diffstat (limited to 'pkg/vcs/vcs.go')
-rw-r--r--pkg/vcs/vcs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go
index 28264522f..12130d594 100644
--- a/pkg/vcs/vcs.go
+++ b/pkg/vcs/vcs.go
@@ -64,7 +64,7 @@ type Bisecter interface {
// PreviousReleaseTags returns list of preceding release tags that are reachable from the given commit.
PreviousReleaseTags(commit string) ([]string, error)
- EnvForCommit(commit string, kernelConfig []byte) (*BisectEnv, error)
+ EnvForCommit(binDir, commit string, kernelConfig []byte) (*BisectEnv, error)
}
type Commit struct {