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

should have an option to not follow symlinks #14

Open
asquare opened this issue May 27, 2015 · 4 comments
Open

should have an option to not follow symlinks #14

asquare opened this issue May 27, 2015 · 4 comments

Comments

@asquare
Copy link

asquare commented May 27, 2015

There should be an option to not follow symlinks (and preserve the link) when copying files to BUILDROOT.

@rictorres
Copy link
Owner

that's an interesting case, actually. i'm gonna have a look at this over the weekend!

@ghost
Copy link

ghost commented Oct 30, 2015

Is this issue why I'm getting the following error while trying to copy node_modules/express?

Error: EEXIST, file already exists '../mime/cli.js'
    at Object.fs.symlinkSync (evalmachine.<anonymous>:742:18)
    at copySync (/home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:91:8)
    at /home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:86:7
    at Array.forEach (native)
    at copySync (/home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:85:14)
    at /home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:86:7
    at Array.forEach (native)
    at copySync (/home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:85:14)
    at /home/mjackson/projects/beetlejuice/node_modules/rpm-builder/node_modules/fs-extra/lib/copy.js:86:7
    at Array.forEach (native)

Is there currenly a recommended work around?

@rictorres
Copy link
Owner

hey @majgis, i'm not really sure about your case.
i'm gonna update this module this week and will try to reproduce the issues described here :)

i'll let you guys know.

@ddequidt
Copy link

For the record, I encountered the issue.
I found a workaround by not creating those ./bin syslinks as I don't need them in the package.
Run npm install --only=prod --no-bin-links before building rpm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants