Use signal.NotifyContext and cmd.Context (#482)

This commit is contained in:
Jason Hall
2021-11-02 17:15:25 -04:00
committed by GitHub
parent b1c35d29f5
commit 1e46fdebd5
9 changed files with 22 additions and 37 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ If the image was not built using ko, or if it was built without embedding depend
ko deps docker.io/my-user/my-image:v3`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := createCancellableContext()
ctx := cmd.Context()
ref, err := name.ParseReference(args[0])
if err != nil {