diff --git a/pkg/cli/commands/rpkg/push/command.go b/pkg/cli/commands/rpkg/push/command.go index 2e7d9298..62894749 100644 --- a/pkg/cli/commands/rpkg/push/command.go +++ b/pkg/cli/commands/rpkg/push/command.go @@ -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