checkout: Build fails with checkout v2
See gitfool/Cake.Dungeon workflow builds for commit 7963aee:
Failing in with an obscure error:
Error: One or more errors occurred. (Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''.)
Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''.
##[error]Process completed with exit code 1.
If I revert to checkout v1 it builds successfully again.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (7 by maintainers)
Commits related to this issue
- (GH-36) Add GitHub Actions workflow — committed to cake-contrib/Cake.FileHelpers by gep13 3 years ago
- Update dotnet.yml Add `fetch-depth: 0` to the dotnet pipeline as indicated [here](https://github.com/actions/checkout/issues/113#issuecomment-725688032). — committed to takato1314/automoqfixture_ext by deleted user 3 years ago
@GiorgioBertolotti that hack is no longer needed. See gitfool/Cake.Dungeon@9713d4f.
@ericsciple no worries. My use case is that I currently need to follow checkout with:
in order to get full history as needed by GitVersion. Needless to say, I’d love to get rid of this extra step.
@gitfool soliciting feedback on this PR. sorry for the delay, other things came up.
i have some changes in mind, collecting some feedback from my immediate team and will publish a proposal soon
@ericsciple the
fetch-depth
parameter is not sufficient in my case since it always specifies –no-tags. Could you please make this configurable too?Oh sheesh. I don’t know how I missed that in the README. Thanks, @ericsciple.
@AArnott the
fetch-depth
parameter can be used@ericsciple Can you please add a parameter to
actions/checkout@v2
that instructs the original clone to fetch the full history of HEAD at least? Having a separate fetch step to get more commits seems overly burdensome for folks who wanted the@v1
behavior.