You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a config where src is a relative path to a file, nfpm forces the filetype to be a symlink.
It appears the cause may be due to the usage of os.Readlink in files.go to check if the src is a symlink or not. os.Readlink does not convert the input into an absolute path first and will echo back relative paths as is per go docs.
I am using bazel to generate my src files and nfpm config file. Since bazel operates on relative paths, nfpm is forcing all my files to be symlinks in the output artifact.
How can we reproduce this?
Create a nfpm config with a relative path for src.
What happened?
Given a config where
src
is a relative path to a file, nfpm forces the filetype to be a symlink.It appears the cause may be due to the usage of os.Readlink in files.go to check if the src is a symlink or not.
os.Readlink
does not convert the input into an absolute path first and will echo back relative paths as is per go docs.I am using bazel to generate my src files and nfpm config file. Since bazel operates on relative paths, nfpm is forcing all my files to be symlinks in the output artifact.
How can we reproduce this?
Create a nfpm config with a relative path for
src
.nfpm version
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: