Hello,
I would like to get some more information about Dagger Shell in GitHub Actions.
When I run Dagger commands with the shell configured for Dagger, as explained in the documentation:
shell: dagger {0}
run: |
# Return digest of the built container
. --debug-mode | apps | demo-app-typescript | build | as-tarball | digest
# Run tests
. --debug-mode | apps | demo-app-typescript | test
I can't understand why I see error warning logs like this appearing in the UI:
- 10:00:31 WRN failed to fetch branch err="error fetching branch from origin: exit status 128\nfatal: shallow file has changed since we read it\n"
- 10:01:07 WRN failed to fetch branch err="error fetching branch from origin: exit status 128\nfatal: Unable to create '/home/runner/work/john/repo-example/.git/shallow.lock': File exists.\n\nAnother git process seems to be running in this repository, e.g.\nan editor opened by 'git commit'. Please make sure all processes\nare terminated then try again. If it still fails, a git process\nmay have crashed in this repository earlier:\nremove the file manually to continue.\n"
- 10:00:30 WRN failed to fetch branch err="error getting reference "refs/dagger/pull/12/head": reference not found"
Regarding the setup:
- I currently have several open PRs (Renovate updates)
- I trigger the same workflow for each PR, but with different source code each time
- I use the Dagger engine from Depot, which is therefore shared between the PRs
- When I wrap several Dagger commands with the shell, I see ⬆️
errorwarning logs appear
I don't have this behavior if I don't use the Dagger Shell.
Thank you for your help!