Task · GOB-0018

Fix the go-licenses module path so just notices and the publish notices job stop failing

Description

justfile:337 installs github.com/google/go-licenses@{{ go_licenses_version }} while justfile:16 pins go_licenses_version := env('GO_LICENSES_VERSION', 'v2.0.1'). Go refuses that combination because a post-v1 module must be imported at its majored path:

go: github.com/google/go-licenses@v2.0.1: invalid version: go.mod has post-v2 module path "github.com/google/go-licenses/v2" at revision v2.0.1

So _tools-licensing exits 1, just notices cannot run at all, and the publish / notices job fails. Reproduced locally 2026-09-22 and observed in run 35631028751 (workflow auto-rc, tag v3.1.0-rc.78, HEAD 8037495), whose only failing step was ‘Generate + attach third-party notices’.

The cause is a Renovate bump across a major boundary: the version variable is annotated # renovate: datasource=github-releases depName=google/go-licenses, so Renovate raised v1 to v2.0.1 without knowing the install path encodes the major. Nothing in the repo couples the two, so the same break recurs at v3.

This blocks more than releases: LICENSING.md makes just notices the mechanism that proves what the shipped binary actually links, so no licensing claim about the dependency graph can be verified while it is red.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 L1: repair the go-licenses v2 install coupling, validate its CLI, and regenerate non-empty notices.

Implementation Notes

No application acceptance seam changed, so the conditional acceptance-test item is not applicable. AC5 requires hosted workflow proof and remains deliberately unchecked.

Hosted proof: auto-rc run 35715635428 at ff247962a69399407541c9cb9f8898208f428f34 completed publish / notices successfully on 2026-09-22. The skipped wait jobs were control-flow skips and are not counted as passes.

Final Summary

Repaired the go-licenses v2 invocation and cache coupling in 3451473571206df2bb4a51da088973f9bef7f805. just notices now generates THIRD_PARTY_NOTICES.md for 107 modules. Parked until the exact final SHA completes hosted CI and its publish/notices path is observed. Resume at .github/workflows/publish.yml:91-119 and .github/workflows/auto-rc.yml:21-48; do not promote local notice generation into hosted proof.

Hosted AC5 is now satisfied: auto-rc run 35715635428 at ff247962a69399407541c9cb9f8898208f428f34 completed publish / notices successfully. The task is Done.

View the source file on GitHub