fix: repair build (renamed org-visibility helper) + gofmt #735
Reference in New Issue
Block a user
Delete Branch "fix/compile-hasorgvisible-and-gofmt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The fork's server binary doesn't currently
go build— found when I compiled the org-governance series locally with a real toolchain (go1.26.3) for the first time.routers/api/v1/api.go:519callsorganization.HasOrgOrUserVisible, which no longer exists — it was renamed toIsOwnerVisibleToDoer(models/organization/org.go:548, identical signature(ctx, orgOrUser, user *User) bool). This one missed call site fails compilation of the wholerouters/api/v1package. This is pre-existing onmain(byte-identical), not from #727.api.go(a mis-indented commented-out/projectsblock) andrelease.go(import sort) were gofmt-dirty; fixed withgofmt -won the two files this change touches.Verified locally
go build ./...→ clean (was failing before the rename).gofmt -lon all changed files → clean.go vet ./...running.Merging this makes
dev(and, via #733,main) actually buildable. CI's Lint & Validate never caught this because it doesn't run a fullgo build.https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT