Skip to content

Commit

Permalink
Fix mix task when cleaned first
Browse files Browse the repository at this point in the history
  • Loading branch information
japhib committed Nov 1, 2022
1 parent 40723f2 commit 1f9a007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions examples/simple_umbrella_app/apps/app_b/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ defmodule AppB.MixProject do

# Run "mix help deps" to learn about dependencies.
defp deps do
[{:app_a, in_umbrella: true}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
# {:sibling_app_in_umbrella, in_umbrella: true}
]
[{:app_a, in_umbrella: true}]
end
end
4 changes: 2 additions & 2 deletions lib/mix/tasks/gradient.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ defmodule Mix.Tasks.Gradient do

options = Enum.reduce(options, [], &prepare_option/2)

# Compile the project before the analysis
maybe_compile_project(options)
# Load dependencies
maybe_load_deps(options)
# Start Gradualizer application
Application.ensure_all_started(:gradualizer)
# Compile the project before the analysis
maybe_compile_project(options)
# Get paths to files
files = get_paths(user_paths) |> filter_enabled_paths()

Expand Down

0 comments on commit 1f9a007

Please sign in to comment.