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

Bug - DOTNET_SCRIPT_CACHE_LOCATION doesn't work with relative path #658

Closed
mcintyre321 opened this issue Feb 2, 2022 · 0 comments · Fixed by #699
Closed

Bug - DOTNET_SCRIPT_CACHE_LOCATION doesn't work with relative path #658

mcintyre321 opened this issue Feb 2, 2022 · 0 comments · Fixed by #699

Comments

@mcintyre321
Copy link

Because the default cache location for on my linux build server is readonly, I have to set DOTNET_SCRIPT_CACHE_LOCATION

If I use

mkdir _cache
export DOTNET_SCRIPT_CACHE_LOCATION=_cache
dotnet script somescript.csx

I get a project file not found error as, I think the working directory gets incorrectly combined into a non-existent path (sorry I don't have the example to hand).

I can work around it by writing:

mkdir _cache
export DOTNET_SCRIPT_CACHE_LOCATION=$(pwd)/_cache
dotnet script somescript.csx
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.

1 participant