Skip to content

[Docs][Modernize] Add a review document talking about the codebase#165

Open
morrowc wants to merge 5 commits into
masterfrom
monderize
Open

[Docs][Modernize] Add a review document talking about the codebase#165
morrowc wants to merge 5 commits into
masterfrom
monderize

Conversation

@morrowc

@morrowc morrowc commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Focus on its functions/features/goals, this is robot created, so it may need some massage.

Additionally, implement the first phase of the modernization plan proposed.

Chris Morrow added 5 commits May 29, 2026 01:37
Transition Trident to modern Go Modules, clean up legacy GOPATH, and fix struct initializations.

Summary of Changes:
1. Go Module Transition & Clean Up (Phase 1.1)
   - GitHub Migration: Configured go.mod to fetch pitchfork and go dependencies directly from their public GitHub repositories instead of relying on legacy local checkouts in ext/_gopath.
   - Vanity Import Fix: Resolved an issue where trident.li/keyval vanity import redirects were failing by pointing the replace directive directly to the correct public GitHub repository (github.com/secludedsoc/keyval).
   - Makefile Modernization: Cleaned up the Makefile to remove legacy GOPATH exports and complex dependency cloning targets. It now exclusively uses standard Go toolchain commands (go vet, go test, go fmt).
   - Dependency Tidy: Ran go mod tidy to lock versions and update go.sum.

2. Code Quality & Static Analysis (Phase 1.2)
   - Struct Keying: Refactored all PfMEntry and PfUIMentry struct initializations across the codebase to use keyed fields, resolving all go vet warnings. Affected files:
     * src/lib/group.go
     * src/lib/group_attestation.go
     * src/lib/user.go
     * src/lib/vouch.go
     * src/ui/group.go
     * src/ui/root.go

3. Plan Update
   - Marked Phase 1 as completed in doc/modernization/modernization_plan.md.

TAG=agy
CONV=966de079-9753-4c5b-925b-481132adaa66
@morrowc morrowc changed the title [Docs][Modernize] Add a review docuemnt talking about the codebase [Docs][Modernize] Add a review document talking about the codebase Jun 1, 2026
@morrowc morrowc requested a review from massar June 3, 2026 13:17
@morrowc

morrowc commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

I can't see vixie yet, but .... ;)

@morrowc morrowc requested a review from vixie June 4, 2026 02:07
@morrowc

morrowc commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Cool, now sent to vixie.

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