Skip to content

Commit

Permalink
fix: allow urn registry references in porter cli (#3696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-fully-ported authored Sep 29, 2023
1 parent 23f4148 commit 20b009f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/pack/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 20b009f

Please sign in to comment.