瀏覽代碼

fetch by given digest, not tag

Alex Suraci 7 年之前
父節點
當前提交
ae33c6bc04
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {