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

"LICENSE: copyFile: does not exist (No such file or directory)" (it exists but as a symlink) #1134

Open
teto opened this issue Jun 10, 2021 · 3 comments
Labels
preserved Keep stale bot away

Comments

@teto
Copy link

teto commented Jun 10, 2021

I've been trying to compile master version of https://github.com/kowainik/co-log/tree/main/co-log-polysemy.
In my cabal.project I have

-- https://input-output-hk.github.io/haskell.nix/tutorials/source-repository-hashes/#handling-git-repositories-in-projects
source-repository-package
  type: git
  location: https://github.com/kowainik/co-log.git
  subdir: co-log-polysemy
  tag: d2c7ad66af4e79c7a8f8d5e6c324ea3ff2739277
  --sha256:1f5sjwkiiqc99n2mghg0i3qhh9d81wp76d2bk4jm4ls2chb069zn

Now the build chokes on a symlink file ("LICENSE"):

note: keeping build directory '/tmp/nix-build-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv-0'
error: builder for '/nix/store/15y9id4flhsryxh4dg3pjg2w59xlhznb-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv' failed with exit code 1;
       last 10 log lines:
       > --disable-profiling instead.
       > Warning: The 'license-file' field refers to the file 'LICENSE' which does not
       > exist.
       > building
       > Preprocessing library for co-log-polysemy-0.0.1.2..
       > Building library for co-log-polysemy-0.0.1.2..
       > [1 of 2] Compiling Colog.Polysemy.Effect
       > [2 of 2] Compiling Colog.Polysemy
       > installing
       > LICENSE: copyFile: does not exist (No such file or directory)
       For full logs, run 'nix log /nix/store/15y9id4flhsryxh4dg3pjg2w59xlhznb-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv'.

any workaround ? or should I ask upstream to not use symlinks ?

@teto
Copy link
Author

teto commented Jun 11, 2021

I've looked at the build directory and the symlinks are present but because the directory only contains the subdir, the symlinks are dangling. Not sure if that's an issue to solve in the package or if there is any other workaround.

@the-dr-lazy
Copy link

Same problem.
As a hacky workaround, I have fixed it by adding the linked file to the extra-source-files.

@stale
Copy link

stale bot commented Sep 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preserved Keep stale bot away
Projects
None yet
Development

No branches or pull requests

3 participants