Skip to content

Error resolving symlink after upgrade to Gulp v5 #2818

@hangy

Description

@hangy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions