Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/compiler-transport-trust.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/go:1-bookworm
FROM mcr.microsoft.com/devcontainers/base:bookworm

# Remove the broken yarn apt source with expired GPG key
RUN rm -f /etc/apt/sources.list.d/yarn.list
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"ghcr.io/devcontainers/features/docker-in-docker:4.0.0": {},
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.27.3"
},
"ghcr.io/devcontainers/features/node:2.1.0": {
"version": "24"
}
Expand Down
34 changes: 6 additions & 28 deletions .devcontainer/upgrade-tools.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
#!/bin/bash
# Upgrade Go and the GitHub CLI (gh) to their latest released versions.
# Intended to run on devcontainer post-create so the environment always
# picks up the newest toolchain.
# Verify the pinned Go feature and upgrade the GitHub CLI (gh).
set -euo pipefail

ARCH="$(dpkg --print-architecture 2>/dev/null || uname -m)"
case "$ARCH" in
x86_64) ARCH="amd64" ;;
aarch64) ARCH="arm64" ;;
esac

# --- Upgrade Go to the latest stable version ---
echo "Determining latest Go version..."
LATEST_GO="$(curl -fsSL https://go.dev/VERSION?m=text | head -n1)"
if [ -z "${LATEST_GO:-}" ]; then
echo "Failed to determine latest Go version; skipping Go upgrade." >&2
else
CURRENT_GO="$(go version 2>/dev/null | awk '{print $3}' || echo "none")"
if [ "$CURRENT_GO" = "$LATEST_GO" ]; then
echo "Go is already up to date ($CURRENT_GO)."
else
echo "Upgrading Go from ${CURRENT_GO} to ${LATEST_GO}..."
TARBALL="${LATEST_GO}.linux-${ARCH}.tar.gz"
TMP="$(mktemp -d)"
curl -fsSL "https://go.dev/dl/${TARBALL}" -o "${TMP}/${TARBALL}"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "${TMP}/${TARBALL}"
rm -rf "${TMP}"
echo "Go upgraded to $(/usr/local/go/bin/go version | awk '{print $3}')."
fi
CURRENT_GO="$(env -u GOROOT GOTOOLCHAIN=local go version | awk '{print $3}')"
if [ "$CURRENT_GO" != go1.27.3 ]; then
echo "ERROR: Expected Go 1.27.3 from the pinned devcontainer feature; found ${CURRENT_GO}. Rebuild the devcontainer." >&2
exit 1
fi
echo "Go tooling is pinned to ${CURRENT_GO}."

# --- Upgrade the GitHub CLI (gh) to the latest release ---
echo "Upgrading GitHub CLI (gh)..."
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/archie.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion .github/workflows/architecture-guardian.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/cgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ jobs:
# Downloads pre-built binary from GitHub releases instead of using go install
- name: Install golangci-lint
run: |
GOLANGCI_LINT_VERSION="v2.13.2"
GOLANGCI_LINT_VERSION="v2.15.0"
GOOS=$(go env GOOS)
GOARCH=$(go env GOARCH)
GOPATH=$(go env GOPATH)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cloclo.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading