-
Notifications
You must be signed in to change notification settings - Fork 177
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
SSH Client Support via Paramiko #461
Conversation
# Forbid parent directory components completely to avoid the possibility | ||
# of writing outside the build root. We can't use normpath to remove ".." | ||
# because we may be running on Windows, but the remote is a *nix machine. | ||
assert ".." not in filename.parts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of explaining why we don't use normpath here, let's just drop it in local builds as well. This way we don't have to explain anything, and the next person who copies the code for local builds doesn't introduce a similar bug, either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. os.path
functions accepting Pathlib
objects works down to and include Python 3.6, which is our cutoff. So might as well use it.
Thanks! |
Add
execute_remote_ssh
method toBuildPlan
, andRemoteSshBuildProducts
class tonmigen.build.run
. Also addparamiko
toextras_require
.