Explorar o código

fetch by given digest, not tag

Alex Suraci %!s(int64=7) %!d(string=hai) anos
pai
achega
ae33c6bc04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmd/in/main.go

+ 1 - 1
cmd/in/main.go

@@ -53,7 +53,7 @@ func main() {
 
 	dest := os.Args[1]
 
-	ref := req.Source.Repository + ":" + req.Source.Tag
+	ref := req.Source.Repository + "@" + req.Version.Digest
 
 	n, err := name.ParseReference(ref, name.WeakValidation)
 	if err != nil {