Skip to content

fix: migrate module path to v2 - #296

Merged
yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/fix-v2-module-path
Oct 1, 2026
Merged

yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/fix-v2-module-path

Conversation

@yvonnedevlinrh

@yvonnedevlinrh yvonnedevlinrh commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Migrate Gaze to the canonical github.com/unbound-force/gaze/v2 module identity so future v2 patch releases can be installed through the Go toolchain.
  • Add a small pre-release guard that rejects a release tag whose major does not match go.mod.
  • Correct active installation and package-path guidance while preserving Homebrew and GitHub Releases.
  • Sync and archive the completed OpenSpec change.

Existing v2.1.0 tags cannot be repaired; this enables the next patch release.

Closes #289.

Follow-ups:

How to Test

go list -m
.github/scripts/test-validate-module-major.sh
go build ./...
go test -race -count=1 -short -timeout 15m ./...
go test -race -count=1 -run 'TestRunSelfCheck' -timeout 30m ./cmd/gaze/...
golangci-lint run

Expected module identity:
github.com/unbound-force/gaze/v2

How to Demo

Run:

.github/scripts/validate-module-major.sh -- v2.2.0 go.mod

Observe that the canonical /v2 module passes, while the offline test suite rejects mismatched v2/v3 paths and malformed tags.

Key Files Changed

  • go.mod, cmd/, internal/: canonical /v2 module and import migration.
  • .github/scripts/: small release module-major guard and five offline cases.
  • .github/workflows/: release gate before tag creation.
  • README.md, docs/, reporter assets: corrected installation guidance.
  • openspec/: concise synchronized and archived specifications.

Known issues

opencode/agents/cobalt-crush-dev.md:111 and .opencode/commands/uf.review-council.md:243-247 still recommend go install github.com/unbound-force/gaze/cmd/gaze@latest. This is being addressed in issue unbound-force/unbound-force#633 as they are UF scaffolded files

This PR was generated by /uf.finale (AI-assisted).

@yvonnedevlinrh yvonnedevlinrh changed the title Opsx/fix v2 module path fix: migrate module path to v2 Sep 30, 2026
@yvonnedevlinrh yvonnedevlinrh self-assigned this Sep 30, 2026
@yvonnedevlinrh
yvonnedevlinrh force-pushed the opsx/fix-v2-module-path branch from ea5caf2 to 4088a7a Compare October 1, 2026 09:31

@marcusburghardt marcusburghardt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well-scoped Go module path migration from github.com/unbound-force/gaze to github.com/unbound-force/gaze/v2. Release guard is properly structured with input validation and five offline test cases. Transitional documentation accurately conditions go install on a future corrected release. All CI checks pass, all 5 acceptance criteria from #289 are addressed, and constitution compliance is clean.

Two minor observations (non-blocking):

  • test-validate-module-major.sh: the hardcoded expected_module string is intentionally coupled to go.mod — a brief comment noting this would help future maintainers.
  • No v0.x.x test case in the harness (theoretical only, since v0 is historical for this project).

This review was generated by /uf.review-pr (AI-assisted).

@yvonnedevlinrh
yvonnedevlinrh merged commit 40d4e14 into unbound-force:main Oct 1, 2026
5 checks passed
@yvonnedevlinrh
yvonnedevlinrh deleted the opsx/fix-v2-module-path branch October 1, 2026 13:55
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.

fix: migrate module path to /v2 for go install support

2 participants