Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install --sudo destination path must exist to be canonicalized #1352

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Oct 24, 2023

fs::canonicalize calls realpath which requires the dest path to exist. It doesn't when installing the extension for the first time (and a new version of the extension for subsequent times). So...best we can 1 do is trust that @eeeebbbbrrrr 's canonicalization works . 🚀

@workingjubilee
Copy link
Member

Oh, amusing. Thank you!

@workingjubilee workingjubilee merged commit 04351c2 into pgcentralfoundation:develop Oct 25, 2023
9 checks passed
@levkk levkk deleted the levkk-sudo-install-must-exist branch October 25, 2023 00:55
workingjubilee pushed a commit that referenced this pull request Jan 25, 2024
`fs::canonicalize` calls `realpath` which requires the dest path to
exist. It doesn't when installing the extension for the first time (and
a new version of the extension for subsequent times). So...best we can
[1] do is trust that @eeeebbbbrrrr 's canonicalization works. 🚀

[1]: https://stackoverflow.com/questions/68231306/stdfscanonicalize-for-files-that-dont-exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants