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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy