Skip to content

Commit

Permalink
Use 0 days for default CacheValidity
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland committed Feb 9, 2024
1 parent 10be16d commit 1d0f156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/tuf/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const DefaultMirror = "https://tuf-repo-cdn.sigstore.dev"

// Options represent the various options for a Sigstore TUF Client
type Options struct {
// CacheValidity period in days (default 1)
// CacheValidity period in days (default 0)
CacheValidity int
// ForceCache controls if the cache should be used without update
// as long as the metadata is valid
Expand Down Expand Up @@ -110,7 +110,6 @@ func DefaultOptions() *Options {
// Fall back to using a TUF repository in the temp location
home = os.TempDir()
}
opts.CacheValidity = 1
opts.CachePath = filepath.Join(home, ".sigstore", "root")
opts.RepositoryBaseURL = DefaultMirror

Expand Down

0 comments on commit 1d0f156

Please sign in to comment.