Skip to content

Commit 1d1e1d0

Browse files
leave more time for the linter to download packages at dialup speed on windows agent
1 parent 467b82e commit 1d1e1d0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
- name: golangci-lint
4545
uses: golangci/golangci-lint-action@v6
4646
with:
47-
version: v1.60
47+
version: v1.63.4
48+
args: --timeout=30m
4849

4950
- name: Test
5051
run: make test-ci

lock/lock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (l *Lock) LastPID() (int32, error) {
109109
if contents[i] != "" {
110110
pid, err := strconv.ParseInt(contents[i], 10, 32)
111111
if err == nil {
112-
return int32(pid), nil //nolint:gosec
112+
return int32(pid), nil
113113
}
114114
}
115115
}

priority/ioprio_linux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ func getIOPrio(who IOPrioWho) (IOPrioClass, int, error) {
7171
if errno != 0 {
7272
return 0, 0, errnoToError(errno)
7373
}
74-
class := IOPrioClass(r1 >> IOPrioClassShift) //nolint:gosec
75-
value := int(r1 & IOPrioMask) //nolint:gosec
74+
class := IOPrioClass(r1 >> IOPrioClassShift)
75+
value := int(r1 & IOPrioMask)
7676
return class, value, nil
7777
}
7878

term/term.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func OsStdoutTerminalSize() (width, height int) {
9898
}
9999

100100
func fdToInt(fd uintptr) int {
101-
return int(fd) //nolint:gosec
101+
return int(fd)
102102
}
103103

104104
type LockedWriter struct {

0 commit comments

Comments
 (0)