-
Notifications
You must be signed in to change notification settings - Fork 4
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
Relative paths throws exception on Window #15
Comments
@jjttjj Hey Justin, that looks like a much better implementation either way. Would you like to open a PR? Otherwise I can also just apply the change, just let me know :) |
I just opened a PR! |
The PR looks great, just merged and will cut a release in a sec! Thanks a lot. Out of curiosity would you mind telling me more about how you use this lib, whether you also use Confetti itself etc? Thanks :) |
Just deployed |
Thanks for this, and for your work on Confetti! I've basically been just trying to use Confetti to deploy a simple static site, and I switch between Windows and Linux. There are still problems somewhere along my stack on Windows, but this seemed like some low hanging fruit. I'll report any further windows issues as I come to understand them and verify that they are in fact confetti things and not boot, etc. Incidentally I have some vague far off goals of deploying sites to S3 though my own UI, but I don't have a great understanding of AWS in general or using it from clojure yet. So I'm not really sure yet if s3-deploy will be ideal for that or if I'd be better off working with amazonica directly. But for now Confetti has been great for what I'm doing. |
I hope you got to the deploy part eventually? Sorry about the Windows troubles, don't use Windows myself and thus don't quite have the awareness what could go wrong there..
I think s3-deploy is suitable for any situation where you want to synchronize or freshly upload files to S3 in an efficient way while also providing user feedback. What you're planning to do sounds like the kind of thing I had in mind when I wrote the library so if you get yo that part of your project feel free to ask for ideas/code-walkthroughs etc. Documentation could be improved admittedly :) I'm also on the Clojurians slack (http://clojurians.net), feel free to ping me there. |
The relative-path code in s3_deploy.clj here:
with
fails on windows. Because the canonical path of windows files include only single-escaped backslashes, like
c:\\path\\to\\file
, while re-pattern requires extra escapes, likec:\\\\path\\\\to\\\\file
I'm not sure if this is the cleanest fix, but one option is to change the relative-path code to the following:
This should work on all OSes. Let me know if you have any thoughts or would like a PR.
The text was updated successfully, but these errors were encountered: