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

Most upvoted comments

@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:

- name: Fetch unshallow
  run: git fetch --prune --tags --unshallow

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.

@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.