Repository navigation
Conversation
|
Rebased onto origin/main and split cmd/commands/canon_engine_argv.go (302 → 188 + 126 lines) into canon_engine_argv_parse.go to satisfy the 300-line file-budget ratchet; TestFileSizeBudgetNotExceeded now passes. Pushed cbc025b to dw9-cli-3. |
|
Extracted |
|
Fixed gofmt alignment in cmd/commands/canon_bool_value.go (String/Type now aligned with Set). Verified: scripts/ci/gofmt-check.sh failed before the fix and passes after. Pushed as 9036f2b. |
|
Fixed package-size ratchet failure: moved |
…ommands Move NoopBoolValue to internal/cmdregistry and inline plugin name validation at call sites, deleting canon_bool_value.go and plugin_flag.go from cmd/commands to satisfy the package-size ratchet.
|
Fixed the red CI: four files were not gofmt-clean (cmd/commands/canon_engine_argv.go, db_hasura.go, db_migrate.go, internal/plugin/name_validate.go). That one cause failed gofmt, golangci-lint, TestGofmtClean in every Vet/Build/Test matrix leg, and the dependent coverage and nself-ci gates. Reproduced before the fix with |
|
Review fixes pushed (4a011c3): db_remote_plugin.go header now references plugin.ValidateName and name_validate.go; dropped the redundant name != "" guard (already returned early on empty). db_migrate.go and db_hasura.go have no such guard, so unchanged. gofmt, vet and cmd/commands Plugin/Remote tests pass. Comment and dead-branch cleanup only, so there is no behaviour change for a fail-before/pass-after test. |
|
Review items 1 and 2 are already fixed at PR head 4a011c3. The db_remote_plugin.go header no longer mentions validatePluginFlag or plugin_flag.go, and the redundant name != "" guard is gone. The same guard no longer appears in db_migrate.go or db_hasura.go. go build ./cmd/..., go vet ./cmd/commands and the plugin tests (338 passed) are green. No further change needed. |
Suppress false moved-to-itself warnings and preserve plugin validation when a remote flag value looks like
--plugin.Verified all six rows against fresh origin/main
68dc16a04d27250c2718be3674fb62c439c7ca83before changes.--tokenin runner_provision.go:51. Resolution explicitly requires coordinated plugin implementation/help/parity changes in the plugins repo, outside this cli-only task. No partial deprecation applied.Only cli was edited. No Docker, production access, releases, version changes, or hq edits.
Validation uses Go 1.26.10 from go.mod (the local instruction file still names 1.26.6; that version correctly refuses this module).
go test -mod=vendor -overlay <baseline-overlay.json> ./cmd/commands -run 'TestCanonEngineArgvIdentityBreakouts|TestWithRemotePluginFlag|TestRemoteUp_PluginLikeDirectoryStillValidatesPlugin' -count=1: FAIL as expected against origin/main production files with the new tests. Both bugs reproduced, including local validation bypass.go test -mod=vendor ./cmd/commands -run 'TestCanon|TestRemoteUp|TestRemoteStatus_Plugin|TestWithRemotePluginFlag' -count=1: PASS.go vet -mod=vendor ./cmd/commands: PASS.bash scripts/ci/gofmt-check.shandgit diff --check: PASS.go test -mod=vendor -short -timeout=240s ./cmd/commands: PASS (216.022s).go build -mod=vendor -o <scratch>/nself ./cmd/nself: PASS.GOFLAGS=-mod=vendor golangci-lint run --timeout=5m ./cmd/commands/...: PASS, zero issues.No hook exclusions were needed. Scratch artifacts are removed after the PR is created.