Skip to content

Commit 1e59052

Browse files
authored
Update go linter and a few exposed findings (#6033)
* update golangci-lint * updates for linter
1 parent 3c6ad7f commit 1e59052

9 files changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/cli-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: golangci-lint
3232
uses: golangci/golangci-lint-action@v8
3333
with:
34-
version: v2.4
34+
version: v2.6
3535
args: -v --timeout 10m0s
3636
working-directory: cli/azd
3737

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
node-version: "20"
4747

4848
- name: Install golangci-lint
49-
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.4.0
49+
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.6.0
5050

5151
- name: Install cspell
5252
run: npm install -g cspell@8.13.1

cli/azd/pkg/auth/cache_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build unix
5-
// +build unix
65

76
package auth
87

cli/azd/pkg/auth/cache_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build windows
5-
// +build windows
65

76
package auth
87

cli/azd/pkg/exec/cmdtree_posix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build !windows
5-
// +build !windows
65

76
package exec
87

cli/azd/pkg/exec/cmdtree_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build windows
5-
// +build windows
65

76
package exec
87

cli/azd/pkg/osutil/rename_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build !windows
5-
// +build !windows
65

76
package osutil
87

cli/azd/pkg/osutil/rename_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build windows
5-
// +build windows
65

76
package osutil
87

cli/azd/pkg/osutil/rename_windows_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
//go:build windows
5-
// +build windows
65

76
package osutil
87

0 commit comments

Comments
 (0)