Skip to content

gazelle_cabal fails to execute on cabal because of Paths_* files #45

@googleson78

Description

@googleson78

Describe the bug
gazelle_cabal fails to execute on https://github.com/haskell/cabal with the following error:

gazelle: cabalscan: MissingModuleFile {modulePath = "Paths_Cabal", cabalFile = "/home/googleson78/git/cabal/Cabal/Cabal.cabal", componentName = "Cabal"}
gazelle: exit status 1

I believe this is because Paths_Cabal doesn't have an associated file, as it is autogenerated. Other files like this should have the same issue, but Paths_* is encountered much more often in my experience.

To Reproduce

  1. Clone https://github.com/googleson78/cabal
  2. Checkout 3749f6089a015bf18d661f89efa6672613210455
  3. nix-shell
  4. bazel run //:gazelle

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