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. --- pkg/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/build') 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 -- cgit mrf-deployment