Skip to content

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Feb 19, 2024

std/archive/tar.ts will create folders based on file paths used, but it requires using / and not \ in path. This is a problem on Windows, where the path separator is \. This commit adds a check to normalize the path to use / instead of \ when creating the tar.gz file for Connect deploys.

fixes #8749

Opening as a PR as I want to be sure the manifest.json file needs also normalizing or not.

Test shows it works with only this fix.

@cscheid as this impact Posit connect deploys, and this is quite scoped, could we target this for our next path release of 1.4 ?

…r Connect deploys

`std/archive/tar.ts` will create folders based on file paths used, but it requires using `/` and not `\` in path. This is a problem on Windows, where the path separator is `\`. This commit adds a check to normalize the path to use `/` instead of `\` when creating the tar.gz file for Connect deploys.
@cscheid
Copy link
Collaborator

cscheid commented Feb 19, 2024

Yes, we definitely want to backport this. It should just be a matter of cherry-picking the commit and adding to the 1.4 changelog. Do you want to do that?

@cderv
Copy link
Collaborator Author

cderv commented Feb 19, 2024

OK I'll do that - it would be great I know how to so this is good opportunity. I'll reach out if question

@cderv cderv added the backport label Feb 19, 2024
@cderv
Copy link
Collaborator Author

cderv commented Feb 23, 2024

I have backported to v1.4 and added the changelog there.

Merging this in main now

@cderv cderv added this to the v1.5 milestone Feb 23, 2024
@cderv cderv merged commit 92fd38a into main Feb 23, 2024
@cderv cderv deleted the fix/publish-connect-tar branch February 23, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quarto publish connect from windows corrupts path delimiters in the bundle tar.gz
2 participants