mirror of
https://github.com/ko-build/ko.git
synced 2025-07-06 23:36:54 +02:00
Use signal.NotifyContext and cmd.Context (#482)
This commit is contained in:
@ -55,7 +55,8 @@ func addResolve(topLevel *cobra.Command) {
|
||||
ko resolve --local -f config/`,
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
ctx := createCancellableContext()
|
||||
ctx := cmd.Context()
|
||||
|
||||
bo.InsecureRegistry = po.InsecureRegistry
|
||||
builder, err := makeBuilder(ctx, bo)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user