Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Fix backslashes in URLs on Windows #100

Merged
merged 1 commit into from
Mar 30, 2016
Merged

Conversation

dwickern
Copy link
Collaborator

Convert paths to use to forward slashes

Fixes errors like this:

$ goxc bintray
relative path \.goxc-temp\control.tar.gz, full path Z:\golang\bin\packer-post-processor-virtualbox-to-hyperv-xc\0.1.0\.goxc-temp\control.tar.gz
[goxc:bintray] 2016/03/24 12:04:44 Adding Header - Content-Length: 254
[goxc:bintray] 2016/03/24 12:04:44 Adding Header - Content-Type: application/x-gzip
[goxc:bintray] 2016/03/24 12:04:44 PUT to https://api.bintray.com//content/dwickern/packer-plugins/packer-post-processor-virtualbox-to-hyperv/0.1.0/\.goxc-temp\control.tar.gz
[goxc:bintray] 2016/03/24 12:04:44 Http response received
[goxc:bintray] 2016/03/24 12:04:44 Error code: 400 Bad Request
[goxc:bintray] 2016/03/24 12:04:44 Error body:
[goxc:bintray] 2016/03/24 12:04:44 Stopping after 'bintray' failed with error 'Error code: 400, message: 400 Bad Request'
[goxc] 2016/03/24 12:04:44 RunTasks error: Error code: 400, message: 400 Bad Request

@laher
Copy link
Owner

laher commented Mar 26, 2016

this is awesome, thankyou.

I'll add you and then you can merge it yourself.

@dwickern dwickern merged commit 7ad2617 into laher:master Mar 30, 2016
@dwickern
Copy link
Collaborator Author

🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants