From 3abf16995baaaa5b0f4e99c97edc2745e7be96bc Mon Sep 17 00:00:00 2001 From: suganyas Date: Tue, 27 Jun 2023 22:57:41 +1000 Subject: [PATCH] Fix the build for compilation error --- cmd/oras/internal/option/packer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oras/internal/option/packer.go b/cmd/oras/internal/option/packer.go index aeda50b73..2a1dfdcea 100644 --- a/cmd/oras/internal/option/packer.go +++ b/cmd/oras/internal/option/packer.go @@ -77,7 +77,7 @@ func (opts *Packer) Parse() error { if !opts.PathValidationDisabled { for _, path := range opts.FileRefs { // Remove the type if specified in the path [:] format - path, _, err = fileref.Parse(path, "") + path, _, err := fileref.Parse(path, "") if err != nil { return err }