From d9bcc1c779c28b4ce3be90fe78f6c5a9eef2d495 Mon Sep 17 00:00:00 2001 From: Kitty Chiu <42864823+KittyChiu@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:57:45 +1000 Subject: [PATCH] chore: removed hugo from devcontainer --- .devcontainer/devcontainer.json | 39 ++++-------------------------- .devcontainer/on-create-command.sh | 6 ----- .gitignore | 1 + 3 files changed, 6 insertions(+), 40 deletions(-) delete mode 100755 .devcontainer/on-create-command.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4985d81..c8c8b3b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,14 +1,12 @@ { - "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu24.04", "containerUser": "vscode", "features": { "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers/features/go:1": { "version": "1.24" }, - "ghcr.io/github/features/goproxy:1": {}, - "ghcr.io/github/features/go-linter:2": {}, - "ghcr.io/devcontainers/features/node:1": { + "ghcr.io/devcontainers/features/node:2": { "nodeGypDependencies": true, "version": "lts", "nvmVersion": "latest" @@ -18,21 +16,15 @@ "version": "0.151.0" } }, - "onCreateCommand": ".devcontainer/on-create-command.sh", "postCreateCommand": "./tools/setup", - "containerEnv": { - "GOPROXY": "https://goproxy.githubapp.com/mod,https://proxy.golang.org/,direct", - "GOPRIVATE": "", - "GONOPROXY": "", - "GONOSUMDB": "github.com/github/*" - }, "customizations": { "vscode": { "extensions": [ - "golang.go", // Recommended for Hextra theme "mhutchie.git-graph", "esbenp.prettier-vscode", + "tamasfe.even-better-toml", + "budparr.language-hugo-vscode", // Recommended extensions from https://gohugo.io/tools/editors/#visual-studio-code "eliostruyf.vscode-front-matter", @@ -43,11 +35,6 @@ "kaellarkin.hugo-shortcode-syntax" ], "settings": { - "go.lintFlags": [ - "--config=/workspaces/.golangci.toml", - "--whole-files", - "--new-from-rev=origin/main" - ], "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.tabSize": 2, "editor.insertSpaces": true, @@ -56,22 +43,6 @@ "files.insertFinalNewline": true, "files.trimTrailingWhitespace": true } - }, - "codespaces": { - "repositories": { - "github/go-linter": { - "permissions": { - "contents": "read", - "packages": "read" - } - }, - "github/features": { - "permissions": { - "contents": "read", - "packages": "read" - } - } - } } }, "forwardPorts": [1313], @@ -80,4 +51,4 @@ "label": "dev-server" } } -} +} \ No newline at end of file diff --git a/.devcontainer/on-create-command.sh b/.devcontainer/on-create-command.sh deleted file mode 100755 index 1ed41b2..0000000 --- a/.devcontainer/on-create-command.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -e - - -/usr/local/share/goproxy-init.sh -/usr/local/share/go-linter-init.sh diff --git a/.gitignore b/.gitignore index 1e56546..1d15f02 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ hugo.linux .DS_Store site node_modules/ +devcontainer-lock.json # Playwright tests /test-results/