aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-27 17:29:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-27 15:38:45 +0000
commit0cdd36fc443630fa8b6c5d7903cb7adc0baac5b5 (patch)
treef5c27bbb4a809970d83cba87df5bf7638639763c /pkg/build
parent1f9b5e5c3aa41af3a1403e3933f20a2776eb5f4b (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/build')
-rw-r--r--pkg/build/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/build.go b/pkg/build/build.go
index a489f04dc..4d6e3bce3 100644
--- a/pkg/build/build.go
+++ b/pkg/build/build.go
@@ -133,7 +133,7 @@ type builder interface {
func getBuilder(targetOS, targetArch, vmType string) (builder, error) {
if targetOS == targets.Linux {
- if vmType == "gvisor" {
+ if vmType == targets.GVisor {
return gvisor{}, nil
} else if vmType == "cuttlefish" {
return cuttlefish{}, nil