Commit 6d15cb3
committed
Fix SaveCmd.AfterApply context binding
kong.Parse calls AfterApply hooks during parsing, before kctx.BindTo has
a chance to run. SaveCmd.AfterApply(ctx context.Context) needs a bound
context to resolve HEAD via gitHead(). Move the BindTo call into the Parse
options so the binding is available during AfterApply.1 parent 0597b51 commit 6d15cb3
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | 348 | | |
351 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| |||
0 commit comments