Skip to content

Commit ccb97e6

Browse files
committed
fixup! Fix golangci-lint installation path in dev container
1 parent e3f422f commit ccb97e6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.bin/.gitkeep

Whitespace-only changes.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
// See https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/ for the safe.directory part
6464
// The defaultBranch part is required for our deprecated integration tests.
65-
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git config --global init.defaultBranch master && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./.bin",
65+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git config --global init.defaultBranch master && test -e .bin/golangci-lint || { mkdir -p .bin && ln -s $(go env GOPATH)/bin/golangci-lint .bin/golangci-lint }",
6666

6767
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6868
"remoteUser": "vscode"

0 commit comments

Comments
 (0)