Build Cache - Ubuntu Image

Noelle Coleman's Avatar

Noelle Coleman

04 Jul, 2018 10:23 PM

During my build, I'm outputting all the dotnet nuget cache locations using:

dotnet nuget locals all --list

Resulting in the following

info : http-cache: /home/appveyor/.local/share/NuGet/v3-cache
info : global-packages: /home/appveyor/.nuget/packages/
info : temp: /tmp/NuGetScratch

My appveyor.yml has a cache section

cache:
  # NuGet packages cache
  - '~/.local/share/NuGet/v3-cache -> **\*.csproj'

But when running the build I see:

Updating build cache...
Cache entry not found: /home/appveyor/projects/my-project/~/.local/share/NuGet/v3-cache
Build completed

How can I get appveyor to cache the /home/appveyor/.local/share/NuGet/v3-cache folder?

  1. Support Staff 1 Posted by Wasa Pleshakov on 06 Jul, 2018 05:24 AM

    Wasa Pleshakov's Avatar

    Noelle,

    As you can see in the output special sign ~ was not replaces with the actual path to home dir for some reason. Please try to replace ~ sign with $HOME variable:

    cache:
      # NuGet packages cache
      - '$HOME/.local/share/NuGet/v3-cache -> ***.csproj'
    
  2. Ilya Finkelshteyn closed this discussion on 05 Sep, 2018 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac