Skip to content

bug: make licenses fails with 'no Go files' error #186

@wcollins

Description

@wcollins

Description

The make licenses target fails in CI with the error:

F0224 21:59:50.856105   10798 main.go:77] errors for ["."]:
.: -: no Go files in /home/runner/work/ipctl/ipctl
make: *** [Makefile:105: licenses] Error 1

Reproduction Steps

  1. Run make licenses from the project root
  2. Observe the failure

Expected Behavior

make licenses should generate the NOTICE file and check license headers without errors.

Environment

  • OS: Ubuntu (GitHub Actions runner)
  • Version: latest
  • Go Version (if applicable): stable (via setup-go@v6)

Root Cause

Two issues in the license tooling:

  1. Makefile line 105 uses go-licenses report . which targets the root package. The project root has no .go files (entry point is ./cmd/ipctl), so go-licenses fails.

  2. Version mismatch: The CI workflow (.github/workflows/premerge.yaml line 25) installs go-licenses@latest (v1), while the Makefile dependencies target installs go-licenses/v2@latest.

Checklist

  • I have checked existing issues to avoid duplicates
  • I have provided a clear description of the issue
  • I have included steps to reproduce (if applicable)
  • I have included relevant environment details

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions