Skip to content

chore: promote dev to main (top-down dep tree sweep)#7

Merged
Snider merged 3 commits into
mainfrom
dev
Apr 30, 2026
Merged

chore: promote dev to main (top-down dep tree sweep)#7
Snider merged 3 commits into
mainfrom
dev

Conversation

@Snider

@Snider Snider commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Routine dev→main promotion as part of cross-repo top-down dep tree sweep so module-tidy can resolve current versions across consumers.

Snider added 3 commits April 30, 2026 12:22
…/ submodule

Lift Go module into go/ subtree for cross-language repo symmetry (matches
core/api v0.12.0 shape). Module path stays dappco.re/go/build — consumers
see no change. Adds go.work + external/go submodule for dev workspace mode;
CI uses GOWORK=off (already set in .woodpecker.yml).

Moved into go/:
- go.mod, go.sum
- cmd/, pkg/, internal/, tests/, locales/ (locales/embed.go imports as a Go
  package so must live inside the module)

Stays at repo root:
- README.md, CLAUDE.md, AGENTS.md, LICENSE, sonar-project.properties,
  .woodpecker.yml, docs/, ui/

Symlinks: go/{README,CLAUDE,AGENTS}.md + go/docs → ../

Pre-existing failure (NOT caused by restructure):
- pkg/service TestDaemon_Run_{Good,Bad,Ugly} fails with gin handler
  re-registration panic on shared router — test isolation issue.
  Tracked as separate concern.

Verification:
- go mod tidy clean (GOWORK=off)
- go vet ./... clean
- go test pass for pkg/storage; pre-existing pkg/service flake noted above
- audit COMPLIANT
Mechanical fixes across cmd/, internal/, pkg/. errcheck wrapping for
unchecked returns, removal of unused stdlib_assert aliases (declared
but never referenced), staticcheck modernisations.

Test files DID get touched in this lane (brief was the older version
without the skip-tests rule) — but the changes are safe: deleting
unused vars + wrapping ignored returns in `_ =`. No behaviour changes,
no test-intent breakage.

Pre-existing failure unchanged:
- pkg/service TestDaemon_Run_{Good,Bad,Ugly} still panic with gin
  "handlers already registered for path /api/v1/build/events" —
  that's a test-isolation bug from the restructure, not from this lane.
  Tracked separately.
Mirrors api shape: .github/workflows/ci.yml runs test+coverage (Codecov),
golangci-lint --tests=false, and sonarcloud-scan-action to
dappcore_go-build. README gets the badge block (CI / quality gate / cov /
security / maintainability / reliability / smells / NCLOC / pkg.go.dev /
license).

GOPROXY=direct GOSUMDB=off env in workflow to dodge the proxy.golang.org
stale-zip pattern that broke api's first run.

Internal Woodpecker pipeline at ci.lthn.sh continues unchanged.
@Snider Snider merged commit 3f9f1ec into main Apr 30, 2026
1 of 3 checks passed
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots
11.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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