gulpjs / gulp

A toolkit to automate & enhance your workflow

Home Page:https://gulpjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ELOOP: too many symbolic links encountered, scandir

liayn opened this issue · comments

I gave gulp 5 a shot and ran into a problem.

What were you expecting to happen?

Run a simple copy job as it did with gulp 4.

  qr: function () {
    return gulp
      .src([
        'node_modules/qr-scanner/qr-scanner.min.js',
      ])
      .pipe(gulp.dest('Resources/Public/JavaScript/Lib'));
  },

What actually happened?

Error: ELOOP: too many symbolic links encountered, scandir <a very long path here (due to recursion)>

Please give us a sample of your gulpfile

see above

Terminal output / screenshots

[14:24:12] Error: ELOOP: too many symbolic links encountered, scandir '/usr/src/app/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf
/ext/comot/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf/ext/comot/.Build/web/typo3conf/ext/comot/...

Please provide the following information:

  • OS & version: WSL2
  • node version (run node -v): 20.11.1
  • npm version (run npm -v): 10.2.4
  • gulp version (run gulp -v): 5

Additional information

The project's .Build folder contains the path .Build/web/typo3conf/ext/comot/ which itself is symlink back to the project's root.
(This is created by the testing framework of TYPO3 and necessary to execute the PHP unit tests.)

I don't understand why the .Build path is even considered/touched. My src requires only a single specific file.

We're working on a related bug in gulpjs/glob-stream#125

This issue seems to be related to walking the tree before we path match.

Going to close this here as a duplicate - follow gulpjs/glob-stream#125 for updates!