From 0cdd36fc443630fa8b6c5d7903cb7adc0baac5b5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 27 May 2024 17:29:36 +0200 Subject: 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. --- sys/targets/targets.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') 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" -- cgit mrf-deployment