diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-27 17:29:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-27 15:38:45 +0000 |
| commit | 0cdd36fc443630fa8b6c5d7903cb7adc0baac5b5 (patch) | |
| tree | f5c27bbb4a809970d83cba87df5bf7638639763c /pkg/vcs | |
| parent | 1f9b5e5c3aa41af3a1403e3933f20a2776eb5f4b (diff) | |
sys/targets: add consts for gvisor/starnix
Lint started warning about duplicate "gvisor" const in pkg/cover.
Add gvisor/starnix consts to sys/targets package to avoid duplication.
Diffstat (limited to 'pkg/vcs')
| -rw-r--r-- | pkg/vcs/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vcs/linux.go b/pkg/vcs/linux.go index d5a4d138c..41716e50c 100644 --- a/pkg/vcs/linux.go +++ b/pkg/vcs/linux.go @@ -193,7 +193,7 @@ func linuxGCCPath(tags map[string]bool, binDir, defaultCompiler string) string { } func (ctx *linux) PrepareBisect() error { - if ctx.vmType != "gvisor" { + if ctx.vmType != targets.GVisor { // Some linux repos we fuzz don't import the upstream release git tags. We need tags // to decide which compiler versions to use. Let's fetch upstream for its tags. err := ctx.git.fetchRemote("https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "") |
