Skip to content

Comments

fix: use full git history in build job#259

Open
Aman-Cool wants to merge 1 commit intoOpenScienceLabs:mainfrom
Aman-Cool:fix/shallow-clone-git-revision-date
Open

fix: use full git history in build job#259
Aman-Cool wants to merge 1 commit intoOpenScienceLabs:mainfrom
Aman-Cool:fix/shallow-clone-git-revision-date

Conversation

@Aman-Cool
Copy link

The build job was doing a shallow clone, which meant git-revision-date-localized couldn't read last-modified dates for most pages. With --strict enabled, those warnings break the build and the site never deploys.

Added fetch-depth: 0 to fix it, and bumped actions/checkout to v4 while I was at it.

@Aman-Cool
Copy link
Author

@xmnlab ,Shallow clone was breaking the git dates plugin, which killed the build under --strict. Added fetch-depth: 0 to fix it.

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.

1 participant