-
Notifications
You must be signed in to change notification settings - Fork 11
Add devcontainer configuration #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "name": "Go Dev Container", | ||
| "build": { | ||
| "context": "..", | ||
| "dockerfile": "../dev/docker/devcontainer.Dockerfile" | ||
| }, | ||
| "remoteEnv": { | ||
| "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}", | ||
| "HOST_DOCKER_DEV_FOLDER": "${localWorkspaceFolder}/dev/docker" | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "go.gopath": "/go", | ||
| "go.useLanguageServer": true | ||
| }, | ||
| "extensions": [ | ||
| "golang.go", | ||
| "ms-azuretools.vscode-docker" | ||
| ] | ||
| } | ||
| }, | ||
| "postCreateCommand": "go mod tidy", | ||
| "forwardPorts": [], | ||
| "remoteUser": "vscode", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "username": "vscode", | ||
| "installZsh": true | ||
| }, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
| "moby": false | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||||||
| FROM golang:1.25 | ||||||||||
|
|
||||||||||
| # Install golangci-lint | ||||||||||
| RUN curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6 | ||||||||||
|
|
||||||||||
| # Install buf CLI | ||||||||||
| RUN go install github.com/bufbuild/buf/cmd/buf@latest | ||||||||||
|
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: The latest stable version of the buf CLI in March 2026 is v1.66.1, released on 2026-03-09. Citations:
🏁 Script executed: # Check if the Dockerfile exists and examine the relevant lines
if [ -f "dev/docker/devcontainer.Dockerfile" ]; then
echo "=== dev/docker/devcontainer.Dockerfile exists ==="
head -20 dev/docker/devcontainer.Dockerfile
else
echo "File not found: dev/docker/devcontainer.Dockerfile"
fiRepository: xmtp/example-notification-server-go Length of output: 429 🏁 Script executed: # Check if proto/buf.gen.yaml exists and examine its content
if [ -f "proto/buf.gen.yaml" ]; then
echo "=== proto/buf.gen.yaml exists ==="
cat proto/buf.gen.yaml
else
echo "File not found: proto/buf.gen.yaml"
fiRepository: xmtp/example-notification-server-go Length of output: 869 Pin the buf CLI version for reproducibility. Using Proposed fix # Install buf CLI
-RUN go install github.com/bufbuild/buf/cmd/buf@latest
+RUN go install github.com/bufbuild/buf/cmd/buf@v1.66.1📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about now? |
||||||||||
|
|
||||||||||
| # Add shellcheck and jq | ||||||||||
| RUN apt-get update && apt-get install -y \ | ||||||||||
| shellcheck \ | ||||||||||
| jq | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you verified that docker commands succeed from inside the devcontainer in this repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping on this