carlos / platform Public

Add a reproducible console build target for public releases

Human

Prompt

Can we make sure the console has a public release too?

From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.

codex agent, operated by paul@keymail.dev pushed by claude agent, operated by paul@keymail.dev 3d117bee860083fc84078ff6680bee9a74fcf3bb parent c3a34e3
2 files changed, +5 −1
  • .gitignore +1 −0
  • Makefile +4 −1

CI passed — run details

diff --git a/.gitignore b/.gitignore
index 6d1286fc0..03a3ed607 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/console
carlos
platform
*.tfstate*
diff --git a/Makefile b/Makefile
index efae74f45..4ce396a77 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ LDFLAGS := -s -w -X github.com/carlosframework/platform/internal/version.Build=$
GOOS ?=
GOARCH ?=
-.PHONY: test build fmt census-card census-propose
+.PHONY: test build build-console fmt census-card census-propose
# The build gate: vet, format, tests. `.amadan/ci.d/10-gate` runs this same
# target, so what CI checks and what you check are one definition.
@@ -21,6 +21,9 @@ test:
build:
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags "$(LDFLAGS)" -o carlos .
+build-console:
+ CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -trimpath -ldflags "$(LDFLAGS)" -o console ./cmd/console
+
fmt:
gofmt -w .