diff --git a/.claude/skills/upgrading-golang/SKILL.md b/.claude/skills/upgrading-golang/SKILL.md index 962bd387b..596e715cb 100644 --- a/.claude/skills/upgrading-golang/SKILL.md +++ b/.claude/skills/upgrading-golang/SKILL.md @@ -51,27 +51,18 @@ With: FROM golang:X.XX.X@sha256:NEW_DIGEST AS builder ``` -### 5. Update GitHub Actions - -Update `go-version` in all workflow YAML files. See [files-to-update.md](files-to-update.md) for the complete list. - -Pattern to replace: -```yaml -go-version: "X.XX.X" -``` - -### 6. Update Documentation +### 5. Update Documentation Update the version reference in `./CLAUDE.md` under "Key Technologies": ```markdown - **Language**: Go X.XX.X. To know how to upgrade go version, see docs/runbooks ``` -### 7. Update Atlas Docker Image and CLI (Optional) +### 6. Update Atlas Docker Image and CLI (Optional) If the user requested an Atlas upgrade: -**7a. Pull the Atlas Docker image and extract its SHA256 digest:** +**6a. Pull the Atlas Docker image and extract its SHA256 digest:** ```bash docker pull arigaio/atlas:X.XX.X @@ -79,7 +70,7 @@ docker pull arigaio/atlas:X.XX.X Extract the SHA256 digest from the output (format: `sha256:abc123...`). -**7b. Update `./app/controlplane/Dockerfile.migrations`:** +**6b. Update `./app/controlplane/Dockerfile.migrations`:** Pattern to replace: ```dockerfile @@ -119,7 +110,7 @@ With the new version (note: use `v` prefix for the version): curl -sSf https://atlasgo.sh | ATLAS_VERSION=vX.XX.X sh -s -- -y ``` -### 8. Verify Changes +### 7. Verify Changes Run verification commands: ```bash @@ -129,7 +120,7 @@ make lint If errors occur, address them before completing the upgrade. -### 9. Final Checks +### 8. Final Checks - Ensure all license headers are updated (2024 → 2024-2025 or add current year) - Run `buf format -w` if any proto files were affected diff --git a/.claude/skills/upgrading-golang/files-to-update.md b/.claude/skills/upgrading-golang/files-to-update.md index 6e568b168..155560b8f 100644 --- a/.claude/skills/upgrading-golang/files-to-update.md +++ b/.claude/skills/upgrading-golang/files-to-update.md @@ -43,20 +43,6 @@ FROM arigaio/atlas@sha256:DIGEST as base curl -sSf https://atlasgo.sh | ATLAS_VERSION=vX.XX.X sh -s -- -y ``` -## CI/CD Workflows - -### GitHub Actions -- `./.github/workflows/lint.yml` -- `./.github/workflows/test.yml` -- `./.github/workflows/release.yaml` -- `./.github/workflows/codeql.yml` -- `./docs/examples/ci-workflows/github.yaml` - -Update pattern in all: -```yaml -go-version: "X.XX.X" -``` - ## Documentation ### Project Documentation diff --git a/CLAUDE.md b/CLAUDE.md index a700ce226..c2a6f82ff 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -135,7 +135,7 @@ make migration_lint # Lint migration files ## Key Technologies -- **Language**: Go 1.26.0 +- **Language**: Go 1.26.1 - **API**: gRPC with HTTP/JSON gateway, Protocol Buffers with buf - **Database**: PostgreSQL with Ent ORM, Atlas for migrations - **Authentication**: OIDC, JWT tokens diff --git a/app/artifact-cas/Dockerfile.goreleaser b/app/artifact-cas/Dockerfile.goreleaser index 0eda87c33..7b7914ebc 100644 --- a/app/artifact-cas/Dockerfile.goreleaser +++ b/app/artifact-cas/Dockerfile.goreleaser @@ -1,4 +1,4 @@ -FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder +FROM golang:1.26.1@sha256:c7e98cc0fd4dfb71ee7465fee6c9a5f079163307e4bf141b336bb9dae00159a5 AS builder FROM scratch diff --git a/app/cli/Dockerfile.goreleaser b/app/cli/Dockerfile.goreleaser index e54a9fadb..feaede61c 100644 --- a/app/cli/Dockerfile.goreleaser +++ b/app/cli/Dockerfile.goreleaser @@ -1,4 +1,4 @@ -FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder +FROM golang:1.26.1@sha256:c7e98cc0fd4dfb71ee7465fee6c9a5f079163307e4bf141b336bb9dae00159a5 AS builder RUN mkdir -p /.config/chainloop FROM scratch diff --git a/app/controlplane/Dockerfile.goreleaser b/app/controlplane/Dockerfile.goreleaser index f9c89e778..7d8cbf4e0 100644 --- a/app/controlplane/Dockerfile.goreleaser +++ b/app/controlplane/Dockerfile.goreleaser @@ -1,4 +1,4 @@ -FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder +FROM golang:1.26.1@sha256:c7e98cc0fd4dfb71ee7465fee6c9a5f079163307e4bf141b336bb9dae00159a5 AS builder FROM scratch diff --git a/common.mk b/common.mk index 9e6461152..5c90b24d8 100644 --- a/common.mk +++ b/common.mk @@ -9,7 +9,7 @@ init: init-api-tools # in the community version anymore https://github.com/ariga/atlas/issues/2388#issuecomment-1864287189 # install golangci-lint with Go 1.25 support curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v2.4.0 - curl -sSf https://atlasgo.sh | ATLAS_VERSION=v1.1.0 sh -s -- -y + curl -sSf https://atlasgo.sh | ATLAS_VERSION=v1.1.3 sh -s -- -y # initialize API tooling .PHONY: init-api-tools diff --git a/go.mod b/go.mod index 5dabe0226..945fa6410 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/chainloop-dev/chainloop -go 1.26.0 +go 1.26.1 require ( cloud.google.com/go/secretmanager v1.16.0