Skip to content

new-run should cd to the package directory before running the exe #5001

@fgaz

Description

@fgaz

Most exes(tests,benchs) expect to be run in the package root, but with the introduction of projects this is no longer always true.

This became evident when trying new-run with the cabal-install tests (using #4861) while being in the project root.

Relevant lines:

emptyProgramInvocation {
progInvokePath = exePath,
progInvokeArgs = args,
progInvokeEnv = dataDirsEnvironmentForPlan elaboratedPlan
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions