Downgrading from mock 0.3.6 to mock 0.3.2

updated mix.exs mock dep from 0.3.6 to 0.3.2.
Then I deleted _build, deps directories and mix.lock file and ran mix deps.get.
Lock file generated still lists mix 0.3.6 and not 0.3.2. Where else is mix caching deps?

defp deps do
    [
      {:airbrakex, "~> 0.1.6"},
      {:codepagex, "~> 0.1.2"},
      {:csvlixir, "~> 2.0.3"},
      {:ecto, "~> 3.0"},
      {:ecto_sql, "~> 3.0"},
      {:ex_aws, "~> 2.1"},
      {:ex_aws_s3, "~> 2.0"},
      {:ex_csv, "~> 0.1.4"},
      {:exactor, "~> 2.2.0"},
      {:exlager, github: "khia/exlager"},
      {:faker, "~> 0.5"},
      {:html_sanitize_ex, "~> 1.3.0-rc3"},
      {:httpoison, "~> 0.10"},
      {:jason, "~> 1.0"},
      {:jiffy, "~> 0.15.2"},
      {:mariaex, "~> 0.9.1"},
      {:plug_cowboy, "~> 2.0"},
      {:poison, "~> 4.0", override: true},
      {:timex, "~> 3.4"},
      {:ua_parser, "~> 1.5"},
      {:verk, "~> 1.4"},
      {:websocket_client, "~> 1.3"},

      # Development and Test dependencies
      {:apex, "~> 1.2"},
      {:bypass, "~> 1.0"},
      {:coverex, "~> 1.5", only: :test},
      {:credo, "~> 1.0", only: [:dev, :test]},
      {:ex_guard, "~> 1.3", only: :dev},
      {:ex_machina, "~> 2.3"},
      {:ex_unit_notifier, "~> 0.1", only: :test},
      # {:mix_test_watch, "~> 0.2", only: :dev},
      {:mock, "~> 0.3.2"},
    ]
  end

Your deps specifies {:mock, "~> 0.3.2"}, 0.3.6 is in that range, as ~> 0.x.y means >= 0.x.y && < 0.x+1.0.

3 Likes