fix: vendor oban_web — never pull oban_pro from live repo

Remove conditional oban_repo_configured?() check that would pull
oban_pro from repo.oban.pro when hex config contained credentials.
The root mix.exs already provides oban_pro via vendored path.
This commit is contained in:
Graham McInitre 2026-07-16 09:19:02 -05:00
parent e6fba0c5a3
commit ed3c251142

View file

@ -129,24 +129,10 @@ defmodule Oban.Web.MixProject do
end
defp oban_pro_dep do
if oban_repo_configured?() do
[{:oban_pro, "~> 1.7.0", repo: :oban, only: [:test, :dev]}]
else
# Always use the vendored oban_pro provided by the root mix.exs.
# Never pull from the live oban repo regardless of hex config.
[]
end
end
defp oban_repo_configured? do
hex_config = Path.expand("~/.hex/hex.config")
case File.read(hex_config) do
{:ok, content} ->
String.contains?(content, "repo.oban.pro")
{:error, _} ->
false
end
end
defp aliases do
[