-
Notifications
You must be signed in to change notification settings - Fork 535
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
Dependencies file is not found. Supported file pattern: go.sum #476
Comments
I'm not sure what effect has disabling the cache related to build time, but when I do this, the warning is gone. From my understanding, starting with v4, caching is enabled by default. New step, with cache disabled:
Workflow build step has no more warnings: |
Hello @fmunteanu |
See #478. |
Setting the step to (docs reference): - name: Setup Go
uses: actions/setup-go@v5
with:
cache: true
cache-dependency-path: |
**/go.mod
**/go.sum Produces another warning, see
|
This also happens in https://github.com/petermattis/goid because that library has no dependencies, and Go doesn't create a It would be good to avoid the warning in such cases. |
Hi @fmunteanu, The below workflow file have resolved the warning message issue. By adding steps to create the mod cache directory and cache the modules, we ensured that the cache folder path exists before it's accessed by the cache action. This eliminates the warning about the cache folder path not existing on the disk.
|
Hello @fmunteanu |
Hello @fmunteanu |
Description:
I'm getting this warning, on my workflow:
There is a previous issue #281, where the solution was to have the
checkout
executed priorsetup-go
, which is not the case for my workflow.Action version:
setup-go@v5
Platform:
Runner type:
Tools version:
go1.22.2 linux/amd64
Repro steps:
See the related
Setup Go
step, into workflow details.Expected behavior:
No warnings should be generated.
Actual behavior:
Workflow output:
The text was updated successfully, but these errors were encountered: