fix(cmd/variable): preserve special characters in values#266
fix(cmd/variable): preserve special characters in values#266stantheman0128 wants to merge 1 commit into
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing this PR because I missed the existing active PR #206, which addresses the same issue and already has maintainer feedback. The issue page did not surface it in comments, but I should have searched the repository PR history before opening another implementation. Sorry for the duplicate. |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6c039431-df26-4682-ba3c-f6e2782d7838
📒 Files selected for processing (6)
internal/cmd/variable/create/create.gointernal/cmd/variable/create/create_test.gointernal/cmd/variable/update/update.gointernal/cmd/variable/update/update_test.gointernal/cmdutil/keyvalue.gointernal/cmdutil/keyvalue_test.go
| @@ -0,0 +1,26 @@ | |||
| package create | |||
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Fix CI pipeline failure: testpackage linter error.
The golangci-lint pipeline is failing because these new test files use the internal package name instead of the _test suffix required by the testpackage linter. To resolve the CI failure, update the package declarations to use black-box testing and import the tested packages as needed.
internal/cmd/variable/create/create_test.go#L1-L1: Change package tocreate_test.internal/cmd/variable/update/update_test.go#L1-L1: Change package toupdate_test.internal/cmdutil/keyvalue_test.go#L1-L1: Change package tocmdutil_test.
🧰 Tools
🪛 GitHub Actions: golangci-lint / 0_lint.txt
[error] 1-9: golangci-lint: package should be create_test instead of create (testpackage)
🪛 GitHub Actions: golangci-lint / lint
[error] 1-1: golangci-lint: package should be create_test instead of create (testpackage)
🪛 GitHub Check: lint
[failure] 1-1:
package should be create_test instead of create (testpackage)
📍 Affects 3 files
internal/cmd/variable/create/create_test.go#L1-L1(this comment)internal/cmd/variable/update/update_test.go#L1-L1internal/cmdutil/keyvalue_test.go#L1-L1
Sources: Linters/SAST tools, Pipeline failures
Summary
StringToStringflags with rawStringArrayarguments for variable create and updateKEY=VALUEentry only on the first=so${...}, commas, and embedded equals signs are preservedTesting
go test ./...go vet ./...Closes #201
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
Improvements
--key/-karguments in the same command.Tests