feat(master): suggest newer version tags for third-party images (#11)
This commit is contained in:
@@ -34,6 +34,9 @@ func (f *fixedRegistry) Digest(_ context.Context, ref string) (string, error) {
|
||||
return f.digests[ref], nil
|
||||
}
|
||||
|
||||
// Tags lists no tags, so no newer tag is ever suggested.
|
||||
func (f *fixedRegistry) Tags(context.Context, string) ([]string, error) { return nil, nil }
|
||||
|
||||
func TestPickPinnedVersion(t *testing.T) {
|
||||
env := newJobEnv(t)
|
||||
env.store.seedVersion(model.ImageVersion{ID: 5, Repo: slusk, Tag: "1.3.0", Digest: "sha256:old130", Source: model.SourceRunning})
|
||||
|
||||
Reference in New Issue
Block a user