aboutsummaryrefslogtreecommitdiffstats
path: root/sys
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 /sys
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 'sys')
-rw-r--r--sys/targets/targets.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index f5092b8c1..d444f55aa 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -135,6 +135,10 @@ const (
Trusty = "trusty"
Windows = "windows"
+ // These are VM types, but we put them here to prevent string duplication.
+ GVisor = "gvisor"
+ Starnix = "starnix"
+
AMD64 = "amd64"
ARM64 = "arm64"
ARM = "arm"