Skip to content

fix(config): preserve literal connection profile names - #71

Open
efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/preserve-connection-names
Open

efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/preserve-connection-names

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

Viper lowercases connection names and interprets dots as nested paths, leaving profiles such as Prod.EU unusable after saving. Read and write the config with the existing TOML codec so names are preserved and case variants remain distinct. Atomic saves, private file permissions and installation-ID settings are retained, with regression tests for config round-trips and the CLI profile lifecycle.

Tested on macOS arm64 with Go 1.27.1: go test -race -count=1 ./..., go vet ./..., go build ./..., gofmt -l . and git diff --check passed. The two config regression tests failed before the fix. Linux CI and the GoReleaser snapshot have not been run locally.

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