Skip to content

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

@teto

Description

@teto

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    preservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions