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

Error resolving symlink after upgrade to Gulp v5 #2818

Open
2 of 4 tasks
hangy opened this issue Aug 17, 2024 · 0 comments
Open
2 of 4 tasks

Error resolving symlink after upgrade to Gulp v5 #2818

hangy opened this issue Aug 17, 2024 · 0 comments

Comments

@hangy
Copy link

hangy commented Aug 17, 2024

Before you open this issue, please complete the following tasks:

  • use the search bar at the top of the page to search this repository for similar issues or discussions that have already been opened.
  • if you are looking for help from the gulp team or community, open a discussion.
  • if you think there is a problem with the plugin you're using, open a discussion.
  • if you think there is a bug in our code, open this issue.

What were you expecting to happen?

We have a few symlinked icons in our repo. The symlinked files should have been processed by the pipe, and written to the dest.

What actually happened?

After migrating from Gulp v4.0.2 to v5.0.0, Gulp claims that the files do not exist.

Please give us a sample of your gulpfile

The full file is available on GitHub. The main task relevant to this issue could be boiled down to this:

import { dest, src } from "gulp";
import svgmin from "gulp-svgmin";

export function icons() {
  return src("*.svg", { cwd: "./icons" }).
    pipe(
      svgmin({
        // @ts-ignore
        configFile: "icons/svgo.config.js",
      })
    ).
    pipe(dest("./html/images/icons/dist"));
}

Terminal output / screenshots

#22 2.076 [19:15:24] Starting 'icons'...
#22 2.102 [19:15:24] 'icons' errored after 26 ms
#22 2.103 [19:15:24] Error: ENOENT: no such file or directory, lstat 'material/baseline-account_box-24px.svg'
#22 2.104 [19:15:24] Finished 'default' after 49 ms

(GitHub Actions log)

Please provide the following information:

  • OS & version [e.g. MacOS Catalina 10.15.4]: GitHub Actions (ubuntu-latest)
  • node version (run node -v): v20.15.0
  • npm version (run npm -v): 10.7.0
  • gulp version (run gulp -v): CLI version: 3.0.0, Local version: 5.0.0

Additional information

Gulp v4 performs this task just fine. The icons are definitely available in the repo: https://github.com/openfoodfacts/openfoodfacts-server/tree/e33bea5931cab7f321db55349290137b3551ad09/icons

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

1 participant