Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

lost git info using cabal v2-install #23

Closed

Description

@jneira
  • cabal v2-install builds the excutable in a temp directory, instead use the generated locally in the project dir
    • in that directory there is no .git to extract the required info
  • cabal v2-run my-program works as intended
  • the workaround is to use the local copy of the executable inside dist-newstyle, generated by cabal v2-build
  • not sure if the solution could be being able to use a directory outside the project (see Get information from outside of the project #18)

Activity

  1. jsoo1 commented on Apr 23, 2020

    @jsoo1

    I just ran into the same issue

  2. s5k6 commented on Jul 21, 2021

    @s5k6

    Hi,

    I would like to point out this issue I've just raised at Cabal. I think instead of working around/against cabal v2-install, making Cabal discern files generated before sdist and after, would solve this issue, and maybe others.

    In the issue referenced above, I'm asking for feedback and insights from people with a deeper understanding of the Cabal build process. Maybe you could chime in over there…

    Cheers
    Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions