From 85325e4a317c0a6f50328cd37b5e6a22567cb362 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 15 Aug 2025 16:12:51 +0000 Subject: [PATCH] chore(dev): upgrade dev container to v0.21 See [release notes](https://github.com/qdm12/godevcontainer/releases/tag/v0.21.0) Notably: - Go upgraded from 1.23 to 1.25 - golangci-lint upgraded to v2.4.0 - Alpine upgraded from 3.20 to 3.22 - Disable package comment requirement by gopls' staticcheck - Pull container image from ghcr.io --- .devcontainer/Dockerfile | 2 +- .devcontainer/README.md | 6 +++--- .devcontainer/devcontainer.json | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 990967e2..35e96b33 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,2 +1,2 @@ -FROM qmcgaw/godevcontainer:v0.20-alpine +FROM ghcr.io/qdm12/godevcontainer:v0.21-alpine RUN apk add wireguard-tools htop openssl diff --git a/.devcontainer/README.md b/.devcontainer/README.md index 66d34dc1..ffda067c 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -19,16 +19,16 @@ It works on Linux, Windows (WSL2) and OSX. mkdir -p ~/.ssh ``` -1. **For Docker on OSX**: ensure the project directory and your home directory `~` are accessible by Docker. +1. **For OSX hosts**: ensure the project directory and your home directory `~` are accessible by Docker. 1. Open the command palette in Visual Studio Code (CTRL+SHIFT+P). -1. Select `Dev Containers: Open Folder in Container...` and choose the project directory. +1. Select `Dev-Containers: Open Folder in Container...` and choose the project directory. ## Customization For any customization to take effect, you should "rebuild and reopen": 1. Open the command palette in Visual Studio Code (CTRL+SHIFT+P) -2. Select `Dev Containers: Rebuild Container` +2. Select `Dev-Containers: Rebuild Container` Changes you can make are notably: diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 18c16889..222a5074 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -82,6 +82,9 @@ "gopls": { "usePlaceholders": false, "staticcheck": true, + "ui.diagnostic.analyses": { + "ST1000": false + }, "formatting.gofumpt": true, }, "go.lintTool": "golangci-lint",