Просмотр исходного кода

fix: allow urn registry references in porter cli (#3696)

jose-fully-ported 2 лет назад
Родитель
Сommit
20b009f1ad
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cli/cmd/pack/pack.go

+ 1 - 1
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")