Skip to content

cabal new-run silliness #5243

@yav

Description

@yav

I have a cabal package that defines a library and executable. Not surprisingly, they have the same name. Here is what happens when I try to use cabal new-run with it:

$ cabal new-run cryptol
cabal: Ambiguous target 'cryptol'. It could be:
exe:cryptol (component)
lib:cryptol (component)

It doesn't really make sense to run a library (and Cabal knows that, as it reports an error if you try to do so), so new-run should only consider the executable targets and filter out the rest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions