Skip to content

Installed executables take precedence over build-tool-depends #8951

Closed
@sol

Description

@sol

Describe the bug
Executables from ~/.local/bin1 shadow executables that are specified via build-tool-depends.

Why is this a problem? How can this corrupt your builds in non-obvious ways? How much effort is it to debug this? I'm not going into rant mode now, please use your own judgment.

Instead, I will describe the underlying reasons for this bug and possible solutions in a follow-up comment.

To Reproduce
A minimal skeleton that can be used to reproduce the issue is at https://github.com/sol/cabal-bug/tree/build-tools

You may need to adapt this according to your OS and whether you have an existing ~/.cabal or not. So make sure that you fully understand what it is doing before you run it.

System information
Operating system: Linux
cabal: 3.10.1.0
ghc: 9.6.1

Footnotes

  1. Note that this may be ~/.cabal/bin on your system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    re: build-toolConcerning `build-tools` and `build-tool-depends`re: extra-prog-pathConcerning the `extra-prog-path` configuration optionregression in 3.10

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions