Skip to content

Consider reconfiguring if $PATH changes #3138

Closed

Description

@ndmitchell

As per haskell/cabal#2015, it seems Cabal caches the $PATH when running configure and reuses it later. As a result, if a package needs a particular program on $PATH at compile time, a user who modifies their $PATH after a failure will continue to remain in a failure state until running a stack clean. Perhaps the $PATH should be considered an input dependency of configure steps?

Activity

  1. mgsloan commented on Jun 6, 2017

    @mgsloan
    Contributor

    Good to know! Yes, I think it makes sense to do a reconfigure. The alternative would be to just make this a warning, but that could easily be ignored. Marking as P1 since it has to do with build determinism

  2. added this to the P1: Must milestone on Jun 6, 2017
  3. mgsloan commented on Dec 23, 2017

    @mgsloan
    Contributor

    Fixing this will probably invalidate previous configure cache info, so ideally would be batched with any other pending changes to it. Would be possible to have support for reading the old cache version.

  4. added a commit that references this issue on Apr 15, 2019
    e2580d6
  5. snoyberg commented on Apr 15, 2019

    @snoyberg
    Contributor

    See #4740

  6. added a commit that references this issue on Apr 15, 2019
    8355d8c
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions