@@ -789,7 +789,7 @@ func updateContext(t *build.Inputs, inp *Input) {
789789 if strings .HasPrefix (v .Path , "cwd://" ) || strings .HasPrefix (v .Path , "target:" ) || strings .HasPrefix (v .Path , "docker-image:" ) {
790790 continue
791791 }
792- if IsRemoteURL (v .Path ) {
792+ if build . IsRemoteURL (v .Path ) {
793793 continue
794794 }
795795 st := llb .Scratch ().File (llb .Copy (* inp .State , v .Path , "/" ), llb .WithCustomNamef ("set context %s to %s" , k , v .Path ))
@@ -803,7 +803,7 @@ func updateContext(t *build.Inputs, inp *Input) {
803803 if strings .HasPrefix (t .ContextPath , "cwd://" ) {
804804 return
805805 }
806- if IsRemoteURL (t .ContextPath ) {
806+ if build . IsRemoteURL (t .ContextPath ) {
807807 return
808808 }
809809 st := llb .Scratch ().File (llb .Copy (* inp .State , t .ContextPath , "/" ), llb .WithCustomNamef ("set context to %s" , t .ContextPath ))
@@ -839,7 +839,7 @@ func validateContextsEntitlements(t build.Inputs, inp *Input) error {
839839}
840840
841841func checkPath (p string ) error {
842- if IsRemoteURL (p ) || strings .HasPrefix (p , "target:" ) || strings .HasPrefix (p , "docker-image:" ) {
842+ if build . IsRemoteURL (p ) || strings .HasPrefix (p , "target:" ) || strings .HasPrefix (p , "docker-image:" ) {
843843 return nil
844844 }
845845 p , err := filepath .EvalSymlinks (p )
@@ -875,7 +875,7 @@ func toBuildOpt(t *Target, inp *Input) (*build.Options, error) {
875875 if t .Context != nil {
876876 contextPath = * t .Context
877877 }
878- if ! strings .HasPrefix (contextPath , "cwd://" ) && ! IsRemoteURL (contextPath ) {
878+ if ! strings .HasPrefix (contextPath , "cwd://" ) && ! build . IsRemoteURL (contextPath ) {
879879 contextPath = path .Clean (contextPath )
880880 }
881881 dockerfilePath := "Dockerfile"
0 commit comments