Comments (7)
On linux actually the symlink is followed and the real file is copied directly.
from nfpm.
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.
closed by mistake
from nfpm.
@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
: Insymlinks
, you can definesrc: dst
mappings which will create symlinks inside the package. Bothsrc
anddst
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.
Yea this was likely fixed. If I encounter it again, I'll reopen!
from nfpm.
Nice, thanks everyone!
from nfpm.
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)
- Glob does not work on `archlinux` packager HOT 1
- Confusing behaviour with trailing `/` in destination HOT 2
- archlinux packager doesn't use `prerelease` option HOT 2
- No warning/error for invalid package types
- apk tests started to fail HOT 1
- Env expansion not working for global replaces, conflicts HOT 2
- Platform field variable expansion not happening HOT 2
- rpm: packages with undefined values are written as empty strings
- nfpm 2.25.1 release was not completed HOT 1
- Symlink directory issue HOT 2
- Glob causes directory structure to be flattened HOT 5
- archlinux package signing
- archlinux package produces warnings when installed HOT 3
- Add support for creating relocatable RPM packages using nfpm HOT 6
- schema.json file is missing HOT 3
- repo.goreleaser.com is not available over IPv6 HOT 1
- nFPM doesn't seems support includes HOT 1
- Error: unknown field ______ in struct literal of type "github.com/goreleaser/nfpm/v2".Overridables HOT 2
- RFE: ability to exclude files HOT 2
- Documentation does not match behavior of trailing slash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfpm.