Skip to content

Commit 950ba71

Browse files
committed
(maint) Allow git to use long paths in GitHub Actions
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.
1 parent b354b78 commit 950ba71

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
daily_unit_tests_with_nightly_puppet_gem:
10-
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
10+
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
1111
strategy:
1212
matrix:
1313
os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
@@ -50,6 +50,7 @@ jobs:
5050
5151
- name: Prepare testing environment with bundler
5252
run: |
53+
git config --global core.longpaths true
5354
bundle config set system 'true'
5455
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5556
bundle update --jobs 4 --retry 3

.github/workflows/static_code_analysis.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
ruby-version: ${{ env.ruby_version }}
2929

3030
- name: Prepare testing environment with bundler
31-
run: bundle update --jobs 4 --retry 3
31+
run: |
32+
git config --global core.longpaths true
33+
bundle update --jobs 4 --retry 3
3234
3335
- name: Run commits check
3436
run: bundle exec rake commits

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
5353
- name: Prepare testing environment with bundler
5454
run: |
55+
git config --global core.longpaths true
5556
bundle config set system 'true'
5657
${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
5758
bundle update --jobs 4 --retry 3

.github/workflows/unit_tests_with_released_puppet_gem.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
unit_tests_with_released_puppet_gem:
12-
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
12+
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
1313
strategy:
1414
matrix:
1515
os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
@@ -41,6 +41,7 @@ jobs:
4141

4242
- name: Prepare testing environment with bundler
4343
run: |
44+
git config --global core.longpaths true
4445
bundle config set system 'true'
4546
bundle update --jobs 4 --retry 3
4647

0 commit comments

Comments
 (0)