Skip to content
Snippets Groups Projects
Commit 10271a50 authored by Benjamin Pannell's avatar Benjamin Pannell
Browse files

Added fixes for PathTooLongException to FAQ doc

parent e603b9ca
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,21 @@ Is it possible to run GitLab Runner in debug/verbose mode. Do it from terminal:
```
gitlab-runner --debug run
```
## 3. I get a PathTooLongException during my builds on Windows
This is caused by tools like `npm` which will sometimes generate directory structures
with paths more than 260 characters in length. There are two possible fixes you can
adopt to solve the problem.
### a) Use Git with core.longpaths enabled
You can avoid the problem by using Git to clean your directory structure, first run
`git config --system core.longpaths true` from the command line and then set your
project to use *git fetch* from the GitLab CI project settings page.
### b) Use NTFSSecurity tools for PowerShell
The [NTFSSecurity](https://ntfssecurity.codeplex.com/) PowerShell module provides
a *Remove-Item2* method which supports long paths. The Gitlab CI Multi Runner will
detect it if it is available and automatically make use of it.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment