Skip to content

Commit 68ce50f

Browse files
authored
ci: sync with netresearch/.github templates/go-app (#563)
Auto-opened by sync-template.sh. Brings this repo back into alignment with the canonical `go-app` template in `netresearch/.github`. To keep any diverging files, add their paths to `.github/template.yaml`'s `intentional-drift:` list before merging — otherwise the next sync run will revert them.
2 parents 4ccd0f1 + 67eb8f0 commit 68ce50f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ jobs:
6262
attestations: write
6363
with:
6464
binary-name: ${{ github.event.repository.name }}-${{ matrix.target }}
65-
# Fleet convention: main package lives at `./main.go` (repo root) OR
66-
# `./cmd/<repo-name>/main.go`. Any other layout is non-conforming.
67-
main-package: ${{ hashFiles(format('cmd/{0}/main.go', github.event.repository.name)) != '' && format('./cmd/{0}', github.event.repository.name) || '.' }}
65+
# Resolve after checkout (see build-go-attest.yml). `auto` picks
66+
# `.` when ./main.go exists, else `./cmd/<repo-name>` when that
67+
# main.go exists, else fails. Keeps this template file byte-
68+
# identical regardless of whether the consumer uses a root-main
69+
# or cmd/ layout.
70+
main-package: auto
6871
goos: ${{ matrix.goos }}
6972
goarch: ${{ matrix.goarch }}
7073
goarm: ${{ matrix.goarm || '' }}

0 commit comments

Comments
 (0)