Skip to content

Fix gofi build: single binary, pinned to a commit - #2

Open
systemjack wants to merge 1 commit into
gherlein:mainfrom
systemjack:fix-gofi-build
Open

Fix gofi build: single binary, pinned to a commit#2
systemjack wants to merge 1 commit into
gherlein:mainfrom
systemjack:fix-gofi-build

Conversation

@systemjack

Copy link
Copy Markdown

The image build failed at the gofi step:

stat /home/developer/gofi-src/utilities/gofips: directory not found

Upstream consolidated gofips, gofimac, gofinet, gofidns and gofiuser into one
gofi binary -- a BREAKING change still sitting in its CHANGELOG's Unreleased
section -- which deleted ./utilities/gofips and ./utilities/gofimac. Because the
clone tracked the default branch with no pin, that landed in every build the
moment it was pushed.

Builds ./utilities/gofi instead, and pins GOFI_REF to a commit so the next
upstream restructure cannot break the image unannounced. Bump the ref
deliberately. The repo's only tag, v0.1.0, is not a usable pin: it predates the
utilities/ layout entirely and is a flat library at the repo root.

Verified against the pinned tree before rebuilding: utilities/gofi/main.go
declares package main, there is no nested go.mod so the root module builds it,
and gofi's go 1.25.0 requirement is met exactly by the image's GO_VERSION.

The image build failed at the gofi step:

    stat /home/developer/gofi-src/utilities/gofips: directory not found

Upstream consolidated gofips, gofimac, gofinet, gofidns and gofiuser into one
`gofi` binary -- a BREAKING change still sitting in its CHANGELOG's Unreleased
section -- which deleted ./utilities/gofips and ./utilities/gofimac. Because the
clone tracked the default branch with no pin, that landed in every build the
moment it was pushed.

Builds ./utilities/gofi instead, and pins GOFI_REF to a commit so the next
upstream restructure cannot break the image unannounced. Bump the ref
deliberately. The repo's only tag, v0.1.0, is not a usable pin: it predates the
utilities/ layout entirely and is a flat library at the repo root.

Verified against the pinned tree before rebuilding: utilities/gofi/main.go
declares `package main`, there is no nested go.mod so the root module builds it,
and gofi's `go 1.25.0` requirement is met exactly by the image's GO_VERSION.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant