-
Notifications
You must be signed in to change notification settings - Fork 17
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
Windows support #5
Comments
Good point. I had this always in the back of my head and wanted to add it to the readme, but never did for some reason. The reason why windows is not supported is that we can run it without docker on Linux machines. Perhaps it could be done on Windows as well, but I am not sure if python is pre-installed there. If you want to experiment with installing s3cmd on a windows machine based on the current platform, it would make a nice pull request. Otherwise, we could think about using docker but I kind of dislike the idea because it makes the build more slow. |
I can't get s3cmd to properly work in my Github Action on Windows. Locally it is quite straight forward, but for whatever reason it just does not work on GitHub Actions. (I have moved on to the official AWS SDK which comes preinstalled) This is what I found: plain - name: Install S3cmd
run: |
pip install s3cmd
New-Item "$env:APPDATA\s3cmd.ini"
Set-Content "$env:APPDATA\s3cmd.ini" '[default]'
Add-Content "$env:APPDATA\s3cmd.ini" "access_key = ${{ secrets.DEPLOY_ACCESSKEY }}"
[...] However, the pip packages are not properly added to the PATH by default. And even if you add it to the path, powershell can't execute the "s3cmd" file with python automatically. So instead I used: $s3location = $(python -c 'import os,sysconfig;print(sysconfig.get_path(\"scripts\",f\"{os.name}_user\"))')
$s3cmd = $s3location + "/s3cmd"
python $s3cmd ls for whatever reason, with that my github action just keeps running with that and never terminates. Hey, I know that is not a great contribution "I tried a bunch of things and I couldn't get it to work" but maybe this helps someone skip a bunch of steps and start straight where I gave up. Edit: I did not use the action in this repo for any of this. Obviously writing the settings file with the action would be way nicer, but for now on Windows, I just manually do the work in Powershell. |
I tried to run the s3cmd action on Windows in the GitHub Action
windows-2022
environment.This seems unsupported right now.
It would be cool to add support, or if that is not possible, maybe the error message could be improved?
Current error message:
The text was updated successfully, but these errors were encountered: