chore: ensure correct version of golangci-lint is run in ci (#13869)

This commit is contained in:
Colin Adler
2024-07-10 14:50:38 -05:00
committed by GitHub
parent 90a6025e18
commit a6d66cc7ec
3 changed files with 3 additions and 4 deletions

View File

@ -448,8 +448,7 @@ lint/ts:
lint/go: lint/go:
./scripts/check_enterprise_imports.sh ./scripts/check_enterprise_imports.sh
linter_ver=$(shell egrep -o 'GOLANGCI_LINT_VERSION=\S+' dogfood/Dockerfile | cut -d '=' -f 2) linter_ver=$(shell egrep -o 'GOLANGCI_LINT_VERSION=\S+' dogfood/Dockerfile | cut -d '=' -f 2)
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$$linter_ver go run github.com/golangci/golangci-lint/cmd/golangci-lint@v$$linter_ver run
golangci-lint run
.PHONY: lint/go .PHONY: lint/go
lint/examples: lint/examples:

View File

@ -26,7 +26,7 @@ type APIVersion struct {
} }
func (v *APIVersion) WithBackwardCompat(majs ...int) *APIVersion { func (v *APIVersion) WithBackwardCompat(majs ...int) *APIVersion {
v.additionalMajors = append(v.additionalMajors, majs[:]...) v.additionalMajors = append(v.additionalMajors, majs...)
return v return v
} }

View File

@ -350,7 +350,7 @@ func (api *API) postWorkspaceProxy(rw http.ResponseWriter, r *http.Request) {
Name: req.Name, Name: req.Name,
DisplayName: req.DisplayName, DisplayName: req.DisplayName,
Icon: req.Icon, Icon: req.Icon,
TokenHashedSecret: hashedSecret[:], TokenHashedSecret: hashedSecret,
// Enabled by default, but will be disabled on register if the proxy has // Enabled by default, but will be disabled on register if the proxy has
// it disabled. // it disabled.
DerpEnabled: true, DerpEnabled: true,