Skip to content

fix(backup,templates): colon-less inline-credential bare path, stored numbered keys in template gate (D-1156, D-1170) - #971

Merged
acamarata merged 1 commit into
mainfrom
dw4-cli-5
Oct 26, 2026
Merged

acamarata merged 1 commit into
mainfrom
dw4-cli-5

Conversation

@acamarata

Copy link
Copy Markdown
Collaborator

D-1156

`isBarePath` only ran the inline-credential screen when the value held a ":", so `myr,pass=x/y` mapped to `path://` and was echoed in the v1.4 notice and the schedule. Relative values with a `,key=` option shape (and no `./` or `../` prefix) are now left to the parser, which refuses them without echoing. `old,2026` and `./a,b=c` stay bare paths. Test cases added to `TestSettleBarePath`; they fail on main.

D-1170

`templateLicenseKeys` used `CollectLicenseKeys`, which reads only the primary key file. It now appends `license.GetAllStoredKeys()` (key, key.2 to key.10), deduped and trimmed, so a covered second key no longer gives a false E110. New `TestTemplateLicenseKeysStoredNumbered` fails on main.

D-1485

ALREADY-FIXED, no change: #968 (0a873b9) added `internal/cmdregistry/branches_test.go`; `go test -cover ./internal/cmdregistry/` reports 99.6% against the 96 floor.

Checks

  • `go vet ./internal/backup/ ./cmd/commands/`, `gofmt -l`: clean
  • `go test ./internal/backup/... ./cmd/commands/ ./internal/license/...`: all ok
  • New tests run against reverted sources: both fail as expected

…of the bare path map; count stored key.2..10 in the template gate (D-1156, D-1170)
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