We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48599c6 commit fa69ddfCopy full SHA for fa69ddf
pkg/commands/executor.go
@@ -8,6 +8,7 @@ import (
8
"fmt"
9
"io"
10
"os"
11
+ "path/filepath"
12
"time"
13
14
"github.com/golangci/golangci-lint/internal/cache"
@@ -205,7 +206,7 @@ func computeConfigSalt(cfg *config.Config) ([]byte, error) {
205
206
}
207
208
func (e *Executor) acquireFileLock() bool {
- lockFile := os.TempDir() + "/golangci-lint.lock"
209
+ lockFile := filepath.Join(os.TempDir(), "golangci-lint.lock")
210
e.debugf("Locking on file %s...", lockFile)
211
f := flock.New(lockFile)
212
ctx, finish := context.WithTimeout(context.Background(), time.Minute)
0 commit comments