diff --git a/pkg/cli/commands/rpkg/push/command.go b/pkg/cli/commands/rpkg/push/command.go index 3be99e4d..fd0f205d 100644 --- a/pkg/cli/commands/rpkg/push/command.go +++ b/pkg/cli/commands/rpkg/push/command.go @@ -256,7 +256,7 @@ func readFromDir(dir string) (map[string]string, error) { } newRes := make(map[string]string) for key, value := range resources { - newKey := strings.ReplaceAll(key, "\\", "/") + newKey := filepath.ToSlash(key) newRes[newKey] = value } return newRes, nil