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

ELOOP: too many symbolic links encountered, scandir #2767

Closed
liayn opened this issue Mar 29, 2024 · 2 comments
Closed

ELOOP: too many symbolic links encountered, scandir #2767

liayn opened this issue Mar 29, 2024 · 2 comments

Comments

@liayn
Copy link

liayn commented Mar 29, 2024

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.

@phated
Copy link
Member

phated commented Mar 29, 2024

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.

@yocontra
Copy link
Member

yocontra commented Apr 6, 2024

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

@yocontra yocontra closed this as completed Apr 6, 2024
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

No branches or pull requests

3 participants