-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix net ssh make target dir optional #8
base: master
Are you sure you want to change the base?
Fix net ssh make target dir optional #8
Conversation
Hi, I will have a look at this on the weekend. I appreciate this pull request. |
@oklimberg I've added tests and tweaked the dependencies a bit to get the tests running |
Great. However, I’m going on vacation tomorrow and I’m not sure if I’ll be able to review the changes and release a new version beforehand. Therefore, it might not happen until the beginning of January, but I'll try my best. |
no worries, we're pinning my commit in the meantime, enjoy your vacation! |
@oklimberg were you able to review the proposed changes? |
Our usage of this plugin has changed and we're now facing two issues:
1. SFTP connection using SSH fails
This is a downstream error of
net-ssh
, fixed simply by bumping the dependency as proposed here #7.2. Upload to root fails
The upload action of this plugin requires a
target_dir
, this directory is then used together with the file name to create a path to upload. If we use an empty string the resulting path is/{file_name}
which the underlyingnet-sftp
fails to create:This makes uploading files to root of the storage impossible, I'm making the
target_dir
arg optional and accommodating for the non-existence in the path creation. I'm happy to amend the tests as well if you accept this change.