Skip to content

Commit

Permalink
chore: don't install burrito in test (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Aug 11, 2023
1 parent c0d813d commit 13c6797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/next_ls/lsp_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ defmodule NextLS.LSPSupervisor do
if @env == :test do
:ignore
else
argv = if @env == :prod, do: Burrito.Util.Args.get_arguments(), else: System.argv()
{m, f, a} = if @env == :prod, do: {Burrito.Util.Args, :get_arguments, []}, else: {System, :argv, []}

argv = apply(m, f, a)

{opts, _, invalid} =
OptionParser.parse(argv, strict: [stdio: :boolean, port: :integer])
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule NextLS.MixProject do
{:exqlite, "~> 0.13.14"},
{:styler, "~> 0.8", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev},
{:burrito, github: "burrito-elixir/burrito"},
{:burrito, github: "burrito-elixir/burrito", only: [:dev, :prod]},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
Expand Down

0 comments on commit 13c6797

Please sign in to comment.