|
1 | 1 | { |
2 | | - "name": "go-chaincfg dev container", |
3 | | - "image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye", |
4 | | - "features": { |
5 | | - "ghcr.io/devcontainers/features/github-cli:1": {}, |
6 | | - "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} |
7 | | - }, |
8 | | - "mounts": [ |
9 | | - "type=cache,target=/home/vscode/.cache/go-build", |
10 | | - "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock" |
11 | | - ], |
12 | | - "runArgs": [ |
13 | | - "--cap-drop=ALL", |
14 | | - "--security-opt", |
15 | | - "no-new-privileges:true" |
16 | | - ], |
17 | | - "postCreateCommand": "make lint && go vet ./... && go test ./...", |
18 | | - "customizations": { |
19 | | - "vscode": { |
20 | | - "settings": { |
21 | | - "go.useLanguageServer": true, |
22 | | - "go.lintTool": "golangci-lint", |
23 | | - "go.toolsEnvVars": { |
24 | | - "GOFLAGS": "-buildvcs=false" |
25 | | - }, |
26 | | - "editor.formatOnSave": true, |
27 | | - "editor.codeActionsOnSave": { |
28 | | - "source.organizeImports": true |
29 | | - } |
30 | | - }, |
31 | | - "extensions": [ |
32 | | - "golang.Go", |
33 | | - "github.vscode-github-actions", |
34 | | - "eamodio.gitlens" |
35 | | - ] |
36 | | - } |
37 | | - }, |
38 | | - "remoteUser": "vscode" |
| 2 | + "customizations": { |
| 3 | + "vscode": { |
| 4 | + "extensions": [ |
| 5 | + "golang.Go", |
| 6 | + "github.vscode-github-actions", |
| 7 | + "eamodio.gitlens" |
| 8 | + ], |
| 9 | + "settings": { |
| 10 | + "editor.codeActionsOnSave": { |
| 11 | + "source.organizeImports": true |
| 12 | + }, |
| 13 | + "editor.formatOnSave": true, |
| 14 | + "go.lintTool": "golangci-lint", |
| 15 | + "go.toolsEnvVars": { |
| 16 | + "GOFLAGS": "-buildvcs=false" |
| 17 | + }, |
| 18 | + "go.useLanguageServer": true |
| 19 | + } |
| 20 | + } |
| 21 | + }, |
| 22 | + "features": { |
| 23 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, |
| 24 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 25 | + }, |
| 26 | + "image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye", |
| 27 | + "mounts": [ |
| 28 | + "type=cache,target=/home/vscode/.cache/go-build", |
| 29 | + "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock" |
| 30 | + ], |
| 31 | + "name": "go-chaincfg dev container", |
| 32 | + "postCreateCommand": "make lint && go vet ./... && go test ./...", |
| 33 | + "remoteUser": "vscode", |
| 34 | + "runArgs": [ |
| 35 | + "--cap-drop=ALL", |
| 36 | + "--security-opt", |
| 37 | + "no-new-privileges:true" |
| 38 | + ] |
39 | 39 | } |
0 commit comments