beam-community / stripity-stripe

An Elixir Library for Stripe
Other
976 stars 351 forks source link

Can not run mix.deps.get #60

Closed thminhVN closed 5 years ago

thminhVN commented 8 years ago

Can not rune mix.deps.get in my project. This is my file Mix.config

defmodule Delivr.Mixfile do
  use Mix.Project

  def project do
    [app: :delivr,
     version: "0.0.1",
     elixir: "~> 1.2",
     elixirc_paths: elixirc_paths(Mix.env),
     compilers: [:phoenix, :gettext] ++ Mix.compilers,
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,
     aliases: aliases(),
     deps: deps()]
  end

  # Configuration for the OTP application.
  #
  # Type `mix help compile.app` for more information.
  def application do
    [mod: {Delivr, []},
     applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
                    :phoenix_ecto, :postgrex, :sendgrid, :calendar, :stripity_stripe]]
  end

  # Specifies which paths to compile per environment.
  defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
  defp elixirc_paths(_),     do: ["lib", "web"]

  # Specifies your project dependencies.
  #
  # Type `mix help deps` for examples and options.
  defp deps do
    [{:phoenix, "~> 1.2.0"},
     {:phoenix_pubsub, "~> 1.0"},
     {:phoenix_ecto, "~> 3.0"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.6"},
     {:phoenix_live_reload, "~> 1.0", only: :dev},
     {:gettext, "~> 0.11"},
     {:cowboy, "~> 1.0"},
     {:exrm, "~> 1.0.6"},
     {:timex, "~> 2.1.0"},
     {:timex_ecto, "~> 1.1.0"},
     {:number, "~> 0.4.2"},
     {:httpoison, "~> 0.9.0"},
     {:floki, "~> 0.9.0"},
     {:sendgrid, "~> 1.0.2"},
     {:hashids, "~> 2.0"},
     {:json, "~> 0.3.0"},
     {:calendar, "~> 0.14.2"},
     {:stripity_stripe, "~> 1.4.0"}]
  end

  # Aliases are shortcuts or tasks specific to the current project.
  # For example, to create, migrate and run the seeds file at once:
  #
  #     $ mix ecto.setup
  #
  # See the documentation for `Mix` for more info on aliases.
  defp aliases do
    ["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
     "ecto.reset": ["ecto.drop", "ecto.setup"],
     "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
  end
end

This is my error

Failed to use "hackney" (version 1.6.1) because
  httpoison (version 0.9.0) requires ~> 1.6.0
  stripity_stripe (version 1.4.0) requires ~> 1.4.8
  tzdata (version 0.5.8) requires ~> 1.0
  Locked to 1.6.1 in your mix.lock

** (Mix) Hex dependency resolution failed, relax the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock)
aeden commented 8 years ago

It looks like this is fixed in master, so you can workaround it for the moment by declaring the dependency as:

{:stripity_stripe, git: "https://github.com/robconery/stripity-stripe.git"}

robconery commented 8 years ago

I'll get a push ready when I get back from vacation in 5 days.

OscarSwanros commented 8 years ago

was this fix on 1.4?

taylorbrooks commented 8 years ago

I can't get mix deps.get to work either.

Master looks good, but 1.4.0 is no bueno.

mirjoy commented 6 years ago

I have the same issue

begedin commented 6 years ago

@mirjoy Which branch is this occurring for you on? I just checked master and it seems to fetch dependencies without issues for me.

mirjoy commented 6 years ago

I had the issue when I added it to my mix file per the instructions: {:stripity_stripe, "~> 1.4.0"}

However, I was able to get it to run by pulling straight from the repo {:stripity_stripe, git: "https://github.com/robconery/stripity-stripe.git"}

begedin commented 6 years ago

That means we likely need to publish 1.4.1

snewcomer commented 5 years ago

Haven't heard this issue bubble up lately so closing!