mirror of https://github.com/k3d-io/k3d
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.
28 lines
518 B
28 lines
518 B
6 months ago
|
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()
|
||
|
}
|