From 30811414159882d3a1c0254601004c235a8a31ee Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 10 Jan 2022 14:41:03 -0600 Subject: [PATCH] fix mix project base path compatibility with elixir 1.13 see also https://github.com/parroty/excoveralls/pull/271 --- CHANGELOG.md | 6 ++++++ lib/chaps/path_reader.ex | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ec21b80..5c0f607c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.17.1 - 2022-01-10 + +### Fixed + +- Fixed compatibility with Elixir 1.13 + ## 0.17.0 - 2021-11-24 ### Added diff --git a/lib/chaps/path_reader.ex b/lib/chaps/path_reader.ex index aefc936c..a545ee67 100644 --- a/lib/chaps/path_reader.ex +++ b/lib/chaps/path_reader.ex @@ -8,8 +8,7 @@ defmodule Chaps.PathReader do Returns the Mix.Project base path. """ def base_path do - Enum.find(Mix.Project.config_files(), &(&1 =~ ~r/mix.exs/)) - |> Path.dirname() + File.cwd!() end @doc """