Skip to content

Make stack warning about missing other-modules into an error (with flags) #1323

Open

Description

@ndmitchell

If I run stack build it says:

Warning: modules not listed in shake.cabal for 'shake' component (add to other-modules):
    Development.Ninja.Env

How can I turn that into an error so I can test for it in my continuous integration? stack build --Werror? Add a separate stack check target?

Activity

  1. mgsloan commented on Nov 10, 2015

    @mgsloan
    Contributor

    One option would be to extend the meaning of --pedantic to also turn warnings like this into errors (only for things that are always resolvable).

  2. added this to the P3: Optional milestone on Nov 10, 2015
  3. ndmitchell commented on Nov 10, 2015

    @ndmitchell
    ContributorAuthor

    I am happy to run with --Werror but my code is not --Wall clean, and I consider several of the Wall warnings to be actively harmful to code. Perhaps Stack should support both flags separately, as well as together with pedantic, then just Werror would have this effect.

  4. rvion commented on Nov 10, 2015

    @rvion
    Contributor

    I love this new flag idea, and also agree that not all Wall warnings should become errors with this flag

  5. borsboom commented on Nov 25, 2015

    @borsboom
    Contributor

    If anyone wants to work on a PR, that would be welcome.

  6. TheWizardTower commented on Aug 30, 2017

    @TheWizardTower
    Collaborator

    This looks like a fun nugget to chew on. I'll tackle this. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions