Skip to content

Approach of copying subdirs for git extra-deps breaks in the presence of relative symlinks #45

Closed
@isomorpheme

Description

@isomorpheme

In stack.yaml I have something like:

- git: https://github.com/tensorflow/haskell.git
  commit: 925c2e95151c0ea1592c26b51a5d98e4ca4a2fe7
  subdirs:
  - tensorflow
  - tensorflow-proto

I see that this leads to a different src derivation for each subdir here:

cp -r "${rawSrc}/${haskPkgLock.subdir}" "$out"

But for this repo, that leads to a failing build, because the tensorflow-proto subdir has a relative symlink third_party in it that points to ../third_party - this symlink becomes dangling when only the subdir is copied to the store. (third_party itself happens to have a submodule in it, but that's #44.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions