From 79d76e7cf79db23640f53f2e00f2386b71d61cb4 Mon Sep 17 00:00:00 2001 From: Ola Adebayo Date: Fri, 1 May 2026 14:48:36 +0100 Subject: [PATCH 1/2] refactor: replace VERSION file with version.txt for version management --- AGENTS.md | 2 +- gateway/Dockerfile | 2 +- gateway/Makefile | 2 +- gateway/VERSION | 1 - gateway/version.txt | 1 + release-please-config.json | 4 ++-- 6 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 gateway/VERSION create mode 100644 gateway/version.txt diff --git a/AGENTS.md b/AGENTS.md index 4323d57..9bc6dee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,7 +58,7 @@ rep/ │ ├── .goreleaser.yml # Multi-platform release config │ ├── Dockerfile # Multi-stage, FROM scratch final │ ├── Makefile -│ ├── VERSION # "0.1.2" +│ ├── version.txt # "0.1.5" │ ├── go.mod # Go 1.24.5, zero external deps │ ├── cmd/rep-gateway/ │ │ └── main.go # Entrypoint: flags, signals, graceful shutdown diff --git a/gateway/Dockerfile b/gateway/Dockerfile index 3bd3281..096756e 100644 --- a/gateway/Dockerfile +++ b/gateway/Dockerfile @@ -27,7 +27,7 @@ RUN go mod download # Copy source and build. COPY . . RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \ - -ldflags="-s -w -X main.version=$(cat VERSION 2>/dev/null || echo 0.1.0)" \ + -ldflags="-s -w -X main.version=$(cat version.txt 2>/dev/null || echo 0.1.0)" \ -trimpath \ -o /rep-gateway \ ./cmd/rep-gateway diff --git a/gateway/Makefile b/gateway/Makefile index 04857c7..59b5def 100644 --- a/gateway/Makefile +++ b/gateway/Makefile @@ -1,6 +1,6 @@ # REP Gateway — Build & development targets. -VERSION ?= $(shell cat VERSION 2>/dev/null || echo "0.1.0-dev") +VERSION ?= $(shell cat version.txt 2>/dev/null || echo "0.1.0-dev") BINARY := rep-gateway GOFLAGS := -ldflags="-s -w -X main.version=$(VERSION)" -trimpath diff --git a/gateway/VERSION b/gateway/VERSION deleted file mode 100644 index 8294c18..0000000 --- a/gateway/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.2 \ No newline at end of file diff --git a/gateway/version.txt b/gateway/version.txt new file mode 100644 index 0000000..9faa1b7 --- /dev/null +++ b/gateway/version.txt @@ -0,0 +1 @@ +0.1.5 diff --git a/release-please-config.json b/release-please-config.json index 6deb066..b7dba83 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -53,8 +53,8 @@ "separate-pull-requests": true, "include-component-in-tag": true, "tag-separator": "/", - "extra-files": [ - "VERSION", + "extra-files": [ + "version.txt", { "type": "json", "path": "/cli/package.json", From e6c35bededca446c045eac6b27d9f0c96550108f Mon Sep 17 00:00:00 2001 From: Ola Adebayo Date: Fri, 1 May 2026 14:56:57 +0100 Subject: [PATCH 2/2] chore: update version management to use version.txt instead of VERSION --- AGENTS.md | 2 +- CLAUDE.md | 2 +- CONTRIBUTING.md | 2 +- release-please-config.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9bc6dee..cb9f821 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,7 +58,7 @@ rep/ │ ├── .goreleaser.yml # Multi-platform release config │ ├── Dockerfile # Multi-stage, FROM scratch final │ ├── Makefile -│ ├── version.txt # "0.1.5" +│ ├── version.txt # "0.1.5" │ ├── go.mod # Go 1.24.5, zero external deps │ ├── cmd/rep-gateway/ │ │ └── main.go # Entrypoint: flags, signals, graceful shutdown diff --git a/CLAUDE.md b/CLAUDE.md index d2c7e23..b4aa440 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -58,7 +58,7 @@ rep/ │ ├── .goreleaser.yml # Multi-platform release config │ ├── Dockerfile # Multi-stage, FROM scratch final │ ├── Makefile -│ ├── VERSION # "0.1.2" +│ ├── version.txt # "0.1.5" │ ├── go.mod # Go 1.24.5, zero external deps │ ├── cmd/rep-gateway/ │ │ └── main.go # Entrypoint: flags, signals, graceful shutdown diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 298c93b..add5ff8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -153,7 +153,7 @@ All npm packages share a **single version number** and are released together usi ### Gateway Versioning -The Go gateway is versioned independently via `gateway/VERSION` and released through GoReleaser when a `gateway/v*` tag is pushed. +The Go gateway is versioned independently via `gateway/version.txt` and released through GoReleaser when a `gateway/v*` tag is pushed. ## Pull Request Guidelines diff --git a/release-please-config.json b/release-please-config.json index b7dba83..aeae3b1 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -53,7 +53,7 @@ "separate-pull-requests": true, "include-component-in-tag": true, "tag-separator": "/", - "extra-files": [ + "extra-files": [ "version.txt", { "type": "json",