Skip to content

package cache directory in WSL user home not allowed #480

@snmatsui

Description

@snmatsui

In default setting, The package cache directory looks to be set $HOME/.cache by appdirectory.
In general, The WSL $HOME is set /home/username , the cache directory is set /home/username/.cache
However, this path is not allowed to use due to invalid format
https://github.com/UnitedIncome/serverless-python-requirements/blob/master/lib/docker.js#L119-L133

Activity

miketheman

miketheman commented on Feb 29, 2020

@miketheman
Contributor

@snmatsui Thanks for the report! Do you happen to have the versions of serverless, this plugin, Windows, WSL version, and any error messages?

snmatsui

snmatsui commented on Mar 5, 2020

@snmatsui
Author
serverless 1.61.3
serverless-python-requirements 5.0.1
Microsoft Windows [Version 10.0.18362.657]
Ubuntu 18.04.4 LTS(WSL1)
Error: Unknown path format {myname}/.cache/serverless-python-requirements/5ebc7ddfa10ff584cd21e117fb08802d88430a5e4732a13c47b6b1b18a43c3b6_slspyc...
      at getBindPath (/mnt/c/Users/{myprojectpath}/node_modules/serverless-python-requirements/lib/docker.js:132:11)
      ...
blbradley

blbradley commented on Mar 17, 2020

@blbradley

This became an issue starting in 5.x, 4.3.0 works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @miketheman@blbradley@snmatsui

        Issue actions

          package cache directory in WSL user home not allowed · Issue #480 · serverless/serverless-python-requirements