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

Use fetch-depth: 0 in docker-build workflow #2022

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

pkalita-lbl
Copy link
Contributor

Fixes #2007

Replaces #2017

The docs for fetch-depth say that

0 indicates all history for all branches and tags.

This change may increase resource usage when doing a checkout, but in practice I don't think we'll notice a difference. On the other hand it will allow Poetry dynamic versioning to divine the correct version number when run off a tag or a branch.

@pkalita-lbl
Copy link
Contributor Author

Confirmed that this got the version number correct when building from a branch: https://github.com/linkml/linkml/actions/runs/8425340322/job/23071197801?pr=2022#step:7:2205

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.69%. Comparing base (9df3d3b) to head (1b4401b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2022   +/-   ##
=======================================
  Coverage   80.69%   80.69%           
=======================================
  Files         104      104           
  Lines       11622    11622           
  Branches     2910     2910           
=======================================
  Hits         9378     9378           
  Misses       1701     1701           
  Partials      543      543           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@sneakers-the-rat sneakers-the-rat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hell ya easiest code review ever

@sneakers-the-rat
Copy link
Collaborator

sneakers-the-rat commented Mar 25, 2024

correct version can be observed here: https://github.com/linkml/linkml/actions/runs/8425340322/job/23071197801?pr=2022#step:7:2205

edit ope you already linked to it

@pkalita-lbl pkalita-lbl merged commit c642c0d into main Mar 25, 2024
11 checks passed
@pkalita-lbl pkalita-lbl deleted the issue-2007-checkout-fetch-depth branch March 25, 2024 19:23
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.

Docker build failing for release tags
2 participants