-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade Kong library to v1.4.0 #1965
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
8aeab7a
to
9b529ab
Compare
|
Signed-off-by: i4k <t.nateldemoura@gmail.com>
9b529ab
to
257e17a
Compare
Preview of ubuntu-focal/go1.21 tests in 257e17a🔍 View Details on Terramate Cloud .
cmd/terramate/cli
|
Preview of macos-ventura/go1.21 tests in 257e17a🔍 View Details on Terramate Cloud .
cmd/terramate/cli
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -119,6 +119,12 @@ func selectPlanFile(terraformPlan, tofuPlan string) (planfile, provisioner strin | |||
func (c *cli) runOnStacks() { | |||
c.gitSafeguardDefaultBranchIsReachable() | |||
|
|||
if len(c.parsedArgs.Run.Command) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you briefly explain why this becomes necessarily now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they changed the behavior of specifically arg:"" passthrough:""
:
alecthomas/kong#436
Maybe I'm missing something but I cannot make it work in in the way it was before...
The passthrough:""
prevents kong from interpretating the flags, so it's needed otherwise commands with same flags as Terramate gets interpreted. The arg:""
is also needed to ... make it an argument, unless there's other option to keep old behavior :(
The `arg:"" passthrough:""` option leads to malparsing of flags. Signed-off-by: i4k <t.nateldemoura@gmail.com>
The `arg:"" passthrough:""` option leads to malparsing of flags. Signed-off-by: i4k <t.nateldemoura@gmail.com>
## What this PR does / why we need it: Revert #1965 due to a Kong bug in the parsing of `arg:""` in conjunction with `passthrough:""`. Example: Works: ``` $ terramate list --unknown-flag Error: parsing cli args [list --unknown-flag] > unknown flag --unknown-flag ``` Fails: ``` $ ./bin/terramate run --test echo ok terramate: Entering stack in / Error: one or more commands failed > executable file not found in $PATH: running `--test echo ok` in stack /: --test ``` ## Which issue(s) this PR fixes: none ## Special notes for your reviewer: ## Does this PR introduce a user-facing change? ``` yes, fixes a command line flag parsing bug. ```
What this PR does / why we need it:
Upgrade Kong in preparation for upcoming cli help changes.
Which issue(s) this PR fixes:
none
Special notes for your reviewer:
Does this PR introduce a user-facing change?