Skip to content
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

-cache doesn't work with relative path #250

Open
williambrode opened this issue May 14, 2024 · 2 comments
Open

-cache doesn't work with relative path #250

williambrode opened this issue May 14, 2024 · 2 comments

Comments

@williambrode
Copy link

Describe the bug:

Running fyne-cross in WSL2 with the -cache option pointing to a windows path didn't fill in the cache.

To Reproduce:

Steps to reproduce the behaviour:

  1. In WSL2 install fyne-cross v1.4.0
  2. Run fyne-cross linux -cache /c/<path> ...
  3. Notice the path will be created but no files will be populated.
  4. Doing this with a linux path (like ~/cache) works fine.

Device and debug info (please complete the following information):

Device info
  • OS: WSL2 in windows 10
  • Go version: 1.22.3
  • fyne-cross version: 1.4.0
  • Fyne version: 2.4.4
@Jacalz
Copy link
Member

Jacalz commented May 14, 2024

This is getting into border-line territory of potentially being a problem with WSL2. If this works for Linux paths but not emulated Windows paths, it looks like maybe the sandbox isn’t working? I’m not sure if even this is something we can do anything about.

Why not run fyne-cross on Windows directly?

@williambrode
Copy link
Author

williambrode commented May 14, 2024

After running into the issue again in CI I think I now understand that the problem was actually that fyne-cross will appear to work with a relative path for -cache when it doesn't. That is to say - it will create the directory, then when it tries to use the directory in docker it won't work because it doesn't pass the absolute path.

williambrode added a commit to williambrode/fyne-cross that referenced this issue May 14, 2024
williambrode added a commit to williambrode/fyne-cross that referenced this issue May 15, 2024
@williambrode williambrode changed the title -cache doesn't work on windows path from WSL2 -cache doesn't work with relative path May 15, 2024
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

No branches or pull requests

2 participants