From 20b009f1adf1127539f56d683ba6b9bf88e99c55 Mon Sep 17 00:00:00 2001 From: jose-fully-ported <141160579+jose-fully-ported@users.noreply.github.com> Date: Fri, 29 Sep 2023 16:11:32 -0400 Subject: [PATCH] fix: allow urn registry references in porter cli (#3696) --- cli/cmd/pack/pack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/pack/pack.go b/cli/cmd/pack/pack.go index 81c7605f8e..5257c83b4f 100644 --- a/cli/cmd/pack/pack.go +++ b/cli/cmd/pack/pack.go @@ -74,7 +74,7 @@ func (a *Agent) Build(ctx context.Context, opts *docker.BuildOpts, buildConfig * continue } u, err := url.Parse(bp) - if err == nil && u.Scheme != "" { + if err == nil && u.Scheme != "" && u.Scheme != "urn" { // could be a git repository containing the buildpack if !strings.HasSuffix(u.Path, ".zip") && u.Host != "github.com" && u.Host != "www.github.com" { return fmt.Errorf("please provide either a github.com URL or a ZIP file URL")