Git Product home page Git Product logo

Comments (7)

nhooyr avatar nhooyr commented on May 20, 2024

On linux actually the symlink is followed and the real file is copied directly.

from nfpm.

erikgeiser avatar erikgeiser commented on May 20, 2024

I could not reproduce this behaviour on my MacBook running Catalina. However, I created a pull requests with tests as starting point for further investigation.

from nfpm.

caarlos0 avatar caarlos0 commented on May 20, 2024

closed by mistake

from nfpm.

erikgeiser avatar erikgeiser commented on May 20, 2024

@nhooyr Symlink handling changed quite a bit in nfpm since you opened this issue.

  • Symlinks in files: Symlinks in files followed and the actual file is copied to the destination. As far as I am aware and according to my own tests, this also works the same way on macOS (I traced the file read operation up to the final syscall on macOS which should work the same as on Linux). As a result, files should not be used if you want an actual symlink in the package.
  • Symlinks in symlinks: In symlinks, you can define src: dst mappings which will create symlinks inside the package. Both src and dst are paths in the package's root filesystem. Thus there is no need to "read" a symlink from disk on the build host and as a result, this method is build operating system agnostic.

Do you still encounter an issue with macOS? If not, can this issue be closed?

from nfpm.

nhooyr avatar nhooyr commented on May 20, 2024

Yea this was likely fixed. If I encounter it again, I'll reopen!

from nfpm.

caarlos0 avatar caarlos0 commented on May 20, 2024

Nice, thanks everyone!

from nfpm.

caarlos0 avatar caarlos0 commented on May 20, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from nfpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.