CacheBeta@1 cannot find directory that definitely exists
See original GitHub issueRequired Information
Type: Bug Task Name: CacheBeta@1
Environment
Server: Azure Pipelines Agent: Hosted
Issue Description
I had a cache task set up as following:
- task: CacheBeta@1
displayName: Define build dependencies cache
inputs:
key: '"v1" | "build-deps" | $(CI_WORKSPACE_DIRECTORY)/cache/tools-perl-version | $(CI_WORKSPACE_DIRECTORY)/cache/build-deps-cpanfile'
path: /usr/local/perl5/perlbrew/perls/tools-perl/lib/site_perl
The path
definitely exists on disk.
However, I got an error when the job tried to save the cache contents.
Task logs
Attached
Error logs
tar: /usr/local/perl5/perlbrew/perls/tools-perl/lib/site_perl: Cannot open: No such file or directory
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Cannot find folder that Python os module shows exists
This issue has been solved. The directory that I'm looking for was created with os.makedirs() . On closer inspection, I can see that...
Read more >How to fix a directory that is there but doesn't exist? - Super User
I get many of these from extraction of archives. This method works for me. Open Command Prompt and type the following in pressing...
Read more >Find command if filename doesn't exists in directory
You can't use find to look for files that do not exist. However, you may use find to look for directories, and then...
Read more >Directories used by the IDE to store settings, caches, plugins ...
<PRODUCT><VERSION> directory doesn't exist? I get an error at startup (created a ticket ... I use Intellij 11.1.5 and I can't find these...
Read more >Python: Check if a File or Directory Exists - Stack Abuse
Checking if a file or directory exists using Python is definitely one ... can see, it doesn't care if the path points to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Posted at https://developercommunity.visualstudio.com/idea/809838/make-docker-startup-faster.html
Thanks.
Good feedback on docs, @autarch! Higher level question - if there were good layer caching, would you use that instead?
@vtbassmatt for: