8000 Bug - DOTNET_SCRIPT_CACHE_LOCATION doesn't work with relative path · Issue #658 · dotnet-script/dotnet-script · GitHub
[go: up one dir, main page]

Skip to content
Bug - DOTNET_SCRIPT_CACHE_LOCATION doesn't work with relative path #658
Closed
@mcintyre321

Description

@mcintyre321

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0