Skip to content

Commit

Permalink
new attempt at enabling long paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 7, 2019
1 parent 69ebf98 commit f6d89e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ environment:

install:
# Enable long paths
- "REG ADD \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\" /v LongPathsEnabled /t REG_DWORD /d 1 /f"
- "./scripts/ci/enable_long_paths.bat"

# Clone submodules
- "git submodule update --init --recursive"
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ before_install:
# The `set -x` makes it easier to debug what happens in the if-statements
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
set -x;
REG ADD "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f ;
./scripts/ci/enable_long_paths.bat;
fi
# Windows: Install Python, make, node/npm using nvs
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/enable_long_paths.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:: Enable long paths on Windows (needed when building since node_modules can create deep hierarchies)

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f

0 comments on commit f6d89e6

Please sign in to comment.