Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
k3d/vendor/github.com/goodhosts/hostsfile/mage/install/install.go

27 lines
518 B

package install
import (
"fmt"
"os/exec"
"github.com/magefile/mage/mg"
)
const (
GolangCILintVersion = "v1.54.2"
)
// Dependencies install all dependencies
func Dependencies() error {
fmt.Println("Installing Dependencies...")
mg.Deps(Golangcilint)
return nil
}
// Golangcilint install golangci-lint
func Golangcilint() error {
fmt.Println("Installing GolangCI Lint...")
cmd := exec.Command("go", "install", "github.com/golangci/golangci-lint/cmd/golangci-lint@"+GolangCILintVersion)
return cmd.Run()
}