Skip to content

Commit

Permalink
Merge pull request nephio-project#92 from RomanBudnyk/patch-1
Browse files Browse the repository at this point in the history
fix porchсtl push method for windows
  • Loading branch information
nephio-prow[bot] authored Aug 18, 2024
2 parents 12b79b2 + 507b2e3 commit a358f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/commands/rpkg/push/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func readFromDir(dir string) (map[string]string, error) {
// Return an early error here to prevent pushing corrupt content.
return fmt.Errorf("file %s is not a valid UTF-8 text file: current porch API doesn't support binary files", path)
}
resources[rel] = string(contents)
resources[filepath.ToSlash(rel)] = string(contents)
return nil
}); err != nil {
return nil, err
Expand Down

0 comments on commit a358f84

Please sign in to comment.