mgallo / openai.ex

community-maintained OpenAI API Wrapper written in Elixir.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`mix-test-watch` dependency running in all environments

fmmatheus opened this issue · comments

Describe the feature or improvement you're requesting

Limit the mix-test-watch dependency to dev and test as suggested in official documentation and avoid mix.deps conflict in case the application is using the default config.

Suggestion (source):

# mix.exs
def deps do
  [
    {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false}
  ]
end

Conflict to avoid:

Dependencies have diverged:
* mix_test_watch (Hex package)
  the :only option for dependency mix_test_watch

  > In mix.exs:
    {:mix_test_watch, "~> 1.1", [env: :prod, hex: "mix_test_watch", only: [:dev, :test], runtime: false, repo: "hexpm"]}

  does not match the :only option calculated for

  > In deps/openai/mix.exs:
    {:mix_test_watch, "~> 1.0", [env: :prod, hex: "mix_test_watch", repo: "hexpm", optional: false]}

  Remove the :only restriction from your dep
** (Mix) Can't continue due to errors on dependencies

Additional context

No response