Skip to content

Commit 32e7b92

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

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
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"

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ coverage.txt
1414
.idea/
1515

1616
# Binaries
17-
.bin/*
18-
!.bin/.gitkeep
17+
.bin/
1918
lazygit
2019
lazygit.exe
2120

0 commit comments

Comments
 (0)