소스 검색

remove unnecessary validation

Mohammed Nafees 4 년 전
부모
커밋
aecb477916
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      cli/cmd/pack/pack.go

+ 0 - 4
cli/cmd/pack/pack.go

@@ -54,10 +54,6 @@ func (a *Agent) Build(opts *docker.BuildOpts, buildConfig *types.BuildConfig) er
 				}
 
 				urlPaths := strings.Split(u.Path[1:], "/")
-				if len(urlPaths) != 2 {
-					return fmt.Errorf("invalid github repo URL: %s", bp)
-				}
-
 				dstDir := filepath.Join(homedir.HomeDir(), ".porter")
 				bpCustomName := regexp.MustCompile("/|-").ReplaceAllString(u.Path[1:], "_")