Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6d66cc

Browse files
authored
chore: ensure correct version of golangci-lint is run in ci (#13869)
1 parent90a6025 commita6d66cc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

‎Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ lint/ts:
448448
lint/go:
449449
./scripts/check_enterprise_imports.sh
450450
linter_ver=$(shell egrep -o 'GOLANGCI_LINT_VERSION=\S+' dogfood/Dockerfile | cut -d '=' -f 2)
451-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$$linter_ver
452-
golangci-lint run
451+
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v$$linter_ver run
453452
.PHONY: lint/go
454453

455454
lint/examples:

‎apiversion/apiversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type APIVersion struct {
2626
}
2727

2828
func (v*APIVersion)WithBackwardCompat(majs...int)*APIVersion {
29-
v.additionalMajors=append(v.additionalMajors,majs[:]...)
29+
v.additionalMajors=append(v.additionalMajors,majs...)
3030
returnv
3131
}
3232

‎enterprise/coderd/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (api *API) postWorkspaceProxy(rw http.ResponseWriter, r *http.Request) {
350350
Name:req.Name,
351351
DisplayName:req.DisplayName,
352352
Icon:req.Icon,
353-
TokenHashedSecret:hashedSecret[:],
353+
TokenHashedSecret:hashedSecret,
354354
// Enabled by default, but will be disabled on register if the proxy has
355355
// it disabled.
356356
DerpEnabled:true,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp