Skip to content

Commit 3acd7a3

Browse files
Update postCreateCommand to install golangci-lint version 2.1.6
1 parent 5e5b4f0 commit 3acd7a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@
2020
"golang.Go"
2121
]
2222
}
23-
}
23+
},
2424

2525
// Features to add to the dev container. More info: https://containers.dev/features.
2626
// "features": {},
2727

28+
2829
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2930
// "forwardPorts": [],
3031

3132
// Use 'postCreateCommand' to run commands after the container is created.
32-
// "postCreateCommand": "go version",
33+
"postCreateCommand": "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6",
3334

3435
// Configure tool-specific properties.
3536
// "customizations": {},

0 commit comments

Comments
 (0)