Skip to content

fix(config): allow '+' in package and cask names#102

Merged
fullstackjam merged 1 commit into
mainfrom
fix/allow-plus-in-package-names
May 24, 2026
Merged

fix(config): allow '+' in package and cask names#102
fullstackjam merged 1 commit into
mainfrom
fix/allow-plus-in-package-names

Conversation

@fullstackjam
Copy link
Copy Markdown
Collaborator

Summary

  • Adds + to pkgNameRe so Homebrew casks like logi-options+ and formulae like gtk+ validate.
  • Adds a regression test (TestRemoteConfig_AllowsPlusInPackageNames).

Without this, openboot snapshot --publish fails for users whose machine has any cask containing +. The server returns a 400 (Only alphanumeric, hyphens, underscores, dots, @ and / allowed.), but the CLI's own regex is identical — so the same input would be rejected once client-side validation is wired in too.

Server-side validation needs the matching relaxation in a separate PR on the openboot.dev repo.

Fixes #101

Test plan

  • go test -run TestRemoteConfig_AllowsPlusInPackageNames ./internal/config/ — failed before the regex change, passes after.
  • make test-unit — full L1 green.
  • go vet ./...

Homebrew casks like `logi-options+` and formulae like `gtk+` legitimately
contain '+', but pkgNameRe rejected them — causing `snapshot --publish`
to fail at the server boundary with a 400.

Fixes #101
@github-actions github-actions Bot added the tests Tests only label May 24, 2026
@fullstackjam fullstackjam merged commit 5f9cf4d into main May 24, 2026
12 checks passed
@fullstackjam fullstackjam deleted the fix/allow-plus-in-package-names branch May 24, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to publish due to "logi-options+" package name

1 participant