Skip to content

Commit b5eb812

Browse files
committed
fix: relocate devcontainer
1 parent 24b966f commit b5eb812

File tree

5 files changed

+40
-59
lines changed

5 files changed

+40
-59
lines changed

.devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "go-subtree 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"
39+
}

.devcontainer/devcontainer.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ delivery and open-source collaboration from day one.
4242
| Directory | Description |
4343
|------------------|-----------------------------------------------------------------------------------|
4444
| `.github/` | Issue templates, workflows, and community documentation |
45-
| `.devcontainer/` | VS Code dev container configuration for consistent local development environments |
4645
| `.vscode/` | VS Code settings and extensions for development |
4746
| `.make/` | Shared Makefile targets used by `Makefile` |
4847
| `examples/` | Example program demonstrating package usage |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ go get -u github.com/bsv-blockchain/go-subtree
135135
* **AI Compliance Playbook** – machine‑readable guidelines ([AGENTS.md](.github/AGENTS.md), [CLAUDE.md](.github/CLAUDE.md), [.cursorrules](.cursorrules), [sweep.yaml](.github/sweep.yaml)) keep ChatGPT, Claude, Cursor & Sweep aligned with your repo’s rules.
136136
* **Pre-commit Hooks for Consistency** powered by [pre-commit](https://pre-commit.com) and the [.pre-commit-config.yaml](.pre-commit-config.yaml) file—run the same formatting, linting, and tests before every commit, just like CI.
137137
* **Automated Hook Updates** keep the [.pre-commit-config.yaml](.pre-commit-config.yaml) current via a weekly [workflow](.github/workflows/update-pre-commit-hooks.yml).
138-
* **DevContainers for Instant Onboarding** – Launch a ready-to-code environment in seconds with [VS Code DevContainers](https://containers.dev/) and the included [.devcontainer/devcontainer.json](.devcontainer/devcontainer.json) config.
138+
* **DevContainers for Instant Onboarding** – Launch a ready-to-code environment in seconds with [VS Code DevContainers](https://containers.dev/) and the included [.devcontainer.json](.devcontainer.json) config.
139139

140140
</details>
141141

codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ coverage:
1717
# --------------
1818
# which folders/files to ignore
1919
ignore:
20-
- ".devcontainer/**"
2120
- ".github/**"
2221
- ".make/**"
2322
- ".vscode/**"

0 commit comments

Comments
 (0)