diff --git a/.golangci.yaml b/.golangci.yaml index 2423036..6460c7d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -125,7 +125,7 @@ linters: # - nilnil # - nlreturn # - noctx - # - nolintlint + - nolintlint # - nonamedreturns - nosprintfhostport - paralleltest diff --git a/git/clone_repository.go b/git/clone_repository.go index f4c765e..3ffa5d6 100644 --- a/git/clone_repository.go +++ b/git/clone_repository.go @@ -26,14 +26,14 @@ func CloneRepository(hostname, name, gitURL, index string) error { // If folder already exists it will do a fetch instead of a clone. if _, err := os.Stat(path); !os.IsNotExist(err) { - out, err := exec.Command("git", "-C", path, "fetch", "--all").CombinedOutput() // nolint: gas + out, err := exec.Command("git", "-C", path, "fetch", "--all").CombinedOutput() if err != nil { return fmt.Errorf("cannot git pull the repository: %s: %s", err.Error(), out) } return nil } - out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput() // nolint: gas + out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput() if err != nil { return fmt.Errorf("cannot git clone the repository: %s: %s", err.Error(), out) }