Skip to content

Commit

Permalink
fix rm: project.extras also contain dependency names
Browse files Browse the repository at this point in the history
  • Loading branch information
00vareladavid committed Jan 9, 2019
1 parent adb3925 commit 23aa8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,8 @@ function rm(ctx::Context, pkgs::Vector{PackageSpec})
@info "No changes"
return
end
deps_names = collect(keys(ctx.env.project.deps))
deps_names = append!(collect(keys(ctx.env.project.deps)),
collect(keys(ctx.env.project.extras)))
filter!(ctx.env.project.targets) do (target, deps)
!isempty(filter!(in(deps_names), deps))
end
Expand Down

0 comments on commit 23aa8f0

Please sign in to comment.