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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gateway/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion gateway/VERSION

This file was deleted.

1 change: 1 addition & 0 deletions gateway/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.5
Comment thread
olamide226 marked this conversation as resolved.
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"include-component-in-tag": true,
"tag-separator": "/",
"extra-files": [
"VERSION",
"version.txt",
{
"type": "json",
"path": "/cli/package.json",
Expand Down
Loading