Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Remove reference to cache which doesn't exist in internal codebase #880

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion container/go/cmd/puller/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ go_library(
"@com_github_google_go_containerregistry//pkg/authn:go_default_library",
"@com_github_google_go_containerregistry//pkg/name:go_default_library",
"@com_github_google_go_containerregistry//pkg/v1:go_default_library",
"@com_github_google_go_containerregistry//pkg/v1/cache:go_default_library",
"@com_github_google_go_containerregistry//pkg/v1/remote:go_default_library",
"@com_github_google_go_containerregistry//pkg/v1/tarball:go_default_library",
],
Expand Down
5 changes: 0 additions & 5 deletions container/go/cmd/puller/puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (

"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1/cache"
"github.com/google/go-containerregistry/pkg/v1/remote"
"github.com/google/go-containerregistry/pkg/v1/tarball"
)
Expand All @@ -34,7 +33,6 @@ var (
imgName = flag.String("name", "", "The name location including repo and digest/tag of the docker image to pull and save. Supports fully-qualified tag or digest references.")
directory = flag.String("directory", "", "Where to save the images files.")
clientConfigDir = flag.String("client-config-dir", "", "The path to the directory where the client configuration files are located. Overiddes the value from DOCKER_CONFIG.")
cachePath = flag.String("cache", "", "Image's files cache directory.")
arch = flag.String("architecture", "", "Image platform's CPU architecture.")
os = flag.String("os", "", "Image's operating system, if referring to a multi-platform manifest list. Default linux.")
osVersion = flag.String("os-version", "", "Image's operating system version, if referring to a multi-platform manifest list.")
Expand Down Expand Up @@ -85,9 +83,6 @@ func pull(imgName, dstPath, cachePath string, platform v1.Platform) {
if err != nil {
log.Fatalf("reading image %q: %v", ref, err)
}
if cachePath != "" {
i = cache.Image(i, cache.NewFilesystemCache(cachePath))
}

// WriteToFile wants a tag to write to the tarball, but we might have
// been given a digest.
Expand Down