Skip to content

Instantly share code, notes, and snippets.

@moxley
Created June 18, 2019 00:58
Show Gist options
  • Save moxley/8c5f73c982428f60970abbeebcdff76e to your computer and use it in GitHub Desktop.
Save moxley/8c5f73c982428f60970abbeebcdff76e to your computer and use it in GitHub Desktop.
Rerun dialyzer after changing dependency in an Elixir project

Oh noes! Are you getting an error reported by dialyzer that is related to a mix.exs dependency, and you want to modify the dependency to try to change the behavior?

With a regular dependency, let's say you modify a file inside of deps/foo/*. Run the following:

  1. mix deps.compile foo
  2. mix dialyzer.build && mix dialyzer

With a dependency specified with the file: ... option, you only need:

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