From b3ea1e1576dac8a70fe601b757a99788403bf069 Mon Sep 17 00:00:00 2001 From: Diego Calero Date: Sun, 19 Mar 2023 16:04:07 -0300 Subject: [PATCH] Changing dialyzer lib from `dialyzex` to `dialyxir`. --- .github/workflows/build.yml | 2 +- .github/workflows/test.yml | 2 +- Makefile | 4 ++-- mix.exs | 2 +- mix.lock | 3 ++- test/support/fixtures.ex | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb407ea..b15f740 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Run tests run: mix test - name: Run dialyzer - run: mix dialyzer --check=true --compile=true + run: mix dialyzer --force-check --format dialyxir - name: Build release run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 177ebee..896b616 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,4 +22,4 @@ jobs: - name: Run tests run: mix test - name: Run dialyzer - run: mix dialyzer --check=true --compile=true + run: mix dialyzer --force-check --format dialyxir diff --git a/Makefile b/Makefile index b211593..81dcc75 100644 --- a/Makefile +++ b/Makefile @@ -40,8 +40,8 @@ coverage: dialyzer: MIX_ENV=dev dialyzer: - @mix dialyzer --check=false + @mix dialyzer --format dialyxir plt: MIX_ENV=dev plt: - @mix dialyzer --check=true --compile=true + @mix dialyzer --force-check --format dialyxir diff --git a/mix.exs b/mix.exs index 71868fe..311d3ac 100644 --- a/mix.exs +++ b/mix.exs @@ -54,7 +54,7 @@ defmodule Coophub.MixProject do {:httpoison, "~> 1.8"}, {:yaml_elixir, "~> 2.9"}, {:cachex, "~> 3.6"}, - {:dialyzex, "~> 1.3", only: :dev} + {:dialyxir, "~> 1.2", only: :dev, runtime: false} ] end diff --git a/mix.lock b/mix.lock index 2bec173..904cc03 100644 --- a/mix.lock +++ b/mix.lock @@ -5,7 +5,8 @@ "cowboy": {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"}, "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"}, - "dialyzex": {:hex, :dialyzex, "1.3.0", "3687f38182751cf6c4444cb0ada036a608567b44eb539e198c9fd4a391fa0088", [:mix], [], "hexpm", "9835208ea3314ef1ec55def3b3d80e5d71c09d29ce2791b7ba6bcf275d92cdae"}, + "dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"}, + "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "eternal": {:hex, :eternal, "1.2.2", "d1641c86368de99375b98d183042dd6c2b234262b8d08dfd72b9eeaafc2a1abd", [:mix], [], "hexpm", "2c9fe32b9c3726703ba5e1d43a1d255a4f3f2d8f8f9bc19f094c7cb1a7a9e782"}, "expo": {:hex, :expo, "0.4.0", "bbe4bf455e2eb2ebd2f1e7d83530ce50fb9990eb88fc47855c515bfdf1c6626f", [:mix], [], "hexpm", "a8ed1683ec8b7c7fa53fd7a41b2c6935f539168a6bb0616d7fd6b58a36f3abf2"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, diff --git a/test/support/fixtures.ex b/test/support/fixtures.ex index 25ef0df..5694b97 100644 --- a/test/support/fixtures.ex +++ b/test/support/fixtures.ex @@ -1,5 +1,5 @@ defmodule CoophubWeb.Fixtures do - @repos_cache_name Application.get_env(:coophub, :main_cache_name) + @repos_cache_name Application.compile_env(:coophub, :main_cache_name) alias Coophub.Repos alias Coophub.Schemas.{Organization, Repository}