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

Relax the .cache requirement for spin_loader::from_file #2072

Closed
Mossaka opened this issue Nov 9, 2023 · 1 comment · Fixed by #2095
Closed

Relax the .cache requirement for spin_loader::from_file #2072

Mossaka opened this issue Nov 9, 2023 · 1 comment · Fixed by #2095

Comments

@Mossaka
Copy link
Contributor

Mossaka commented Nov 9, 2023

Hi there,

I was upgrading the spin shim from spin 1.x to 2.0.0 and found that the spin_loader::from_file function requires the work directory to either have $HOME/.cache or XDG_CACHE_HOME for Linux environment due to the usage of dirs::cache_dir(). I want to relex this requirement or at least provide a configuration to specify the cache directory in the API.

See this discussion: deislabs/containerd-wasm-shims#177 (comment)

Thanks!

@lann
Copy link
Collaborator

lann commented Nov 9, 2023

Replied inline: deislabs/containerd-wasm-shims#177 (comment)

@itowlson itowlson changed the title Relex the .cache requirement for spin_loader::from_file Relax the .cache requirement for spin_loader::from_file Nov 14, 2023
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 a pull request may close this issue.

2 participants