Skip to content
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

switch to checkout@master #2718

Closed
wants to merge 1 commit into from
Closed

Conversation

jepler
Copy link
Member

@jepler jepler commented Mar 18, 2020

To see whether we will be compatible with actions/checkout#176

@jepler
Copy link
Member Author

jepler commented Mar 18, 2020

we don't want to take this in the current form. Rather, we should give feedback to actions/checkout based on the outcome. Later, they intend to add this functionality in checkout@v2, and that is the change we should take.

@jepler
Copy link
Member Author

jepler commented Mar 18, 2020

Thie CI shows failures, but actually it's a success: The one sub-task I changed to checkout@master succeeded, and then succeeded again on "re-run all tasks". Another sub-task using checkout@v1 encountered the failure to checkout on re-run that has been vexing us for some time.

Once checkout@v2 is tagged to include the current checkout@master, we should update all our checkout@v1 to checkout@v2. I'll leave this PR open and rebase it later.

@jepler jepler added this to the 5.x.x - Bug Fixes milestone Mar 18, 2020
@dhalbert
Copy link
Collaborator

The last time I looked checkout@v2 by default does a --depth 1 clone, which doesn't work for us, because we use the nearest tag for version information.

To do a full clone, we need to add:

with:
  fetch-depth: 0

See #2683 (comment) for some more discussion.

@dhalbert dhalbert linked an issue Mar 18, 2020 that may be closed by this pull request
@jepler
Copy link
Member Author

jepler commented Mar 18, 2020

@dhalbert thanks, I'll include that when I update this PR. Any idea whether we can turn the missing information (tags?) into an overt error at build time?

@jepler
Copy link
Member Author

jepler commented Mar 23, 2020

The related bug is marked closed:

Thanks all for the feedback! I updated V2 to include the recent submodule/SSH changes from master.
I will update this PR soon to use checkout@v2 with submodules:true and fetch-depth:0 for all checkouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github actions: consider using checkout@v2
2 participants