-
Notifications
You must be signed in to change notification settings - Fork 474
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
Packages lock file and cache mode #471
Comments
Hello, @alexeyzimarev ! Thank you for reporting this issue, we will take a look and see what can be done :) |
Hello again, @alexeyzimarev! Regarding the resolution to your problem, have you tried setting up The example of what I mean by that would be something like:
In case Using the wildcard as described above would recursively detect all If you have any further questions, concerns or suggestions, please feel free to let us know. Additionally, if this suggestion solved your issue, feel free to let us know about it as well :) Thank you for your time and cooperation! |
Hello, @alexeyzimarev! I just wanted to give you a gentle ping and see if there are any updates on your end regarding this issue? Thank you :) |
Sorry, I am going through GH notifications only now and then, just got your message. No, I haven't tried to set up the path as I thought (after reading the docs), it only expects to get one file, not a mask. I will try the mask during the weekend. |
Same issue here. - name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
cache: true
cache-dependency-path: project_containing_lockfile/packages.lock.json with error: |
I got a same issue, steps:
# Initializing Build Environments
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
cache: true
cache-dependency-path: '**/packages.lock.json' Logs on GitHub Actons as below:
Thank you! 👍 |
Just stumbled onto this issue also. I have both the I also have the Is this
if YES or NO, then the documentation is not clear about this at all and could do with a little update. Also, I'd love to know if the |
Description:
It might the documentation issue as it's very sparse concerning the cache mode.
I have a relatively large repository with one solution, and tens of projects. I enabled restore using the lock file, and now every project directory contains the
packages.lock.json
file.However, when running
setup-dotnet@v3
withcache: true
, I get the following error message:The docs say roughly the same that the action will look for the lock file in the repository root, but NuGet lock files aren't in the repo root, they are in each project directory. How does it suppose to work?
Task version:
v3
Platform:
Runner type:
Repro steps:
packages.lock.json
files (there will be one per project)cache: true
withsetup-dotnet
Repository: https://github.com/Eventuous/eventuous
Failed workflow: https://github.com/Eventuous/eventuous/actions/runs/6363625672
Expected behavior:
NuGet dependencies cached based on the lock files.
Actual behavior:
Action can't find the lock file in the repository root, where it should not be.
The text was updated successfully, but these errors were encountered: