mirror of
https://github.com/containerd/containerd.git
synced 2026-06-24 08:48:48 +00:00
This change updates the Go version from 1.25.8 to 1.26.0 across the repository, including CI configurations, build scripts, and development environments. It also fixes two linter issues discovered after upgrading the Go version: - core/snapshots/storage/bolt.go: incorrect printf format for uint64 - plugins/transfer/plugin.go: incorrect printf format for int and unused variable The golangci-lint version in script/setup/install-dev-tools is also updated to v2.9.0 to match CI. Signed-off-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
33 lines
983 B
JSON
33 lines
983 B
JSON
// For format details, see https://aka.ms/devcontainer.json.
|
|
{
|
|
"name": "containerd",
|
|
"build": {
|
|
"context": "..",
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"workspaceFolder": "/go/src/github.com/containerd/containerd",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/containerd/containerd,type=bind,consistency=cached",
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
|
|
"ghcr.io/devcontainers/features/go:1": {
|
|
"version": "1.26.0"
|
|
}
|
|
},
|
|
|
|
"onCreateCommand": "sudo PATH=$PATH bash .devcontainer/setup.sh",
|
|
"postAttachCommand": {
|
|
"Runs all non-integration tests that do not require `root` privileges": "make test",
|
|
"Runs non-integration tests which require `root`": "sudo PATH=$PATH make root-test"
|
|
},
|
|
|
|
"remoteUser": "root",
|
|
"runArgs": [
|
|
"--ipc=host",
|
|
"--volume=/dev:/dev",
|
|
"--volume=/run/udev:/run/udev",
|
|
"--privileged"
|
|
]
|
|
}
|