Skip to content

Commit a5c3f63

Browse files
committed
Update dev container settings
1 parent 228d442 commit a5c3f63

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.bin/.gitkeep

Whitespace-only changes.

.devcontainer/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ ARG VARIANT=1-bullseye
55
FROM golang:${VARIANT}
66

77
RUN go install mvdan.cc/gofumpt@latest
8-
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0
9-
RUN golangci-lint --version
108

119
# [Optional] Uncomment this section to install additional OS packages.
1210
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

.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",
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",
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ coverage.txt
1414
.idea/
1515

1616
# Binaries
17-
.bin/
17+
.bin/*
18+
!.bin/.gitkeep
1819
lazygit
1920
lazygit.exe
2021

0 commit comments

Comments
 (0)