fix make vet failures, and enable make vet on CI
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
9
cmd/dist/pull.go
vendored
9
cmd/dist/pull.go
vendored
@@ -38,10 +38,12 @@ command. As part of this process, we do the following:
|
||||
Flags: registryFlags,
|
||||
Action: func(clicontext *cli.Context) error {
|
||||
var (
|
||||
ctx = background
|
||||
ref = clicontext.Args().First()
|
||||
)
|
||||
|
||||
ctx, cancel := appContext()
|
||||
defer cancel()
|
||||
|
||||
conn, err := connectGRPC(clicontext)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -104,8 +106,9 @@ command. As part of this process, we do the following:
|
||||
}()
|
||||
|
||||
defer func() {
|
||||
ctx := background
|
||||
|
||||
// we need new ctx here
|
||||
ctx, cancel := appContext()
|
||||
defer cancel()
|
||||
// TODO(stevvooe): This section unpacks the layers and resolves the
|
||||
// root filesystem chainid for the image. For now, we just print
|
||||
// it, but we should keep track of this in the metadata storage.
|
||||
|
||||
Reference in New Issue
Block a user