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

(maint) Allow git to use long paths in GitHub Actions #523

Conversation

luchihoratiu
Copy link
Contributor

Due to unknown environment changes in GitHub Actions runners, we encountered the following error:
fatal: cannot create directory at 'spec/vcr/GitHubChangelogGenerator_OctoFetcher/_fetch_closed_issues_and_pr/when_API_call_is_valid/returns_pull_request_with_proper_key': Filename too long

As seen here, it was happening when trying to clone https://github.com/skywinder/github-changelog-generator, which indeed has very long paths in spec folder.

This commit allows git to use long paths in our GitHub Actions workflows by running:
git config --global core.longpaths true

@luchihoratiu luchihoratiu requested a review from a team November 10, 2020 13:33
Due to unknown environment changes in GitHub Actions runners, we
encountered the following error:
`fatal: cannot create directory: Filename too long`

This commit allows git to use long paths in our GitHub Actions
workflows.
@luchihoratiu luchihoratiu force-pushed the maint-allow-git-to-use-long-paths-in-gh-actions branch from b4f2415 to a9b3f12 Compare November 10, 2020 15:00
@puppetcla
Copy link

CLA signed by all contributors.

@gimmyxd gimmyxd merged commit 99f825e into puppetlabs:main Nov 11, 2020
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.

None yet

3 participants