allow local file VFS in asset copy

This commit is contained in:
Jesse Haka 2023-11-19 23:26:33 +02:00
parent 0b99ade7a4
commit 0d3f3710a4
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ func writeFile(ctx context.Context, cluster *kops.Cluster, p vfs.Path, data []by
// buildVFSPath task a recognizable https url and transforms that URL into the equivalent url with the object
// store prefix.
func buildVFSPath(target string) (string, error) {
if !strings.Contains(target, "://") || strings.HasPrefix(target, "memfs://") {
if !strings.Contains(target, "://") || strings.HasPrefix(target, "memfs://") || strings.HasPrefix(target, "file://") {
return target, nil
}