Skip to content

Fix paths for Docker on Windows #141

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

Merged
merged 3 commits into from
Mar 5, 2018

Conversation

kichik
Copy link
Contributor

@kichik kichik commented Feb 27, 2018

When using on Windows with the default docker configuration, it passes .serverless\\requirements.txt to docker ... pip install .... This results in the following error:

Could not open requirements file: [Errno 22] Invalid argument: '.serverless\\requirements.txt'

To fix this, we can convert the paths from Windows style to Linux style when running on Windows with dockerZip: true.

When using on Windows with the default docker configuration, it passes `.serverless\\requirements.txt` to `docker ... pip install ...`. This results in the following error:

```
Could not open requirements file: [Errno 22] Invalid argument: '.serverless\\requirements.txt'
```

To fix this, we can convert the paths from Windows style to Linux style when running on Windows with `dockerZip: true`.
@dschep
Copy link
Contributor

dschep commented Feb 27, 2018

@heri16, what are your thoughts on this? You did most of the windows work in this plugin.

@dschep dschep merged commit 2daad79 into serverless:master Mar 5, 2018
@heri16
Copy link
Contributor

heri16 commented Jun 12, 2018

Looks good. Sorry been away from some time. Now back and available.

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

Successfully merging this pull request may close these issues.

3 participants