Skip to content

Commit

Permalink
fix mix project base path compatibility with elixir 1.13
Browse files Browse the repository at this point in the history
see also parroty#271
  • Loading branch information
the-mikedavis committed Jan 10, 2022
1 parent 8c08c4b commit 3081141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions lib/chaps/path_reader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 3081141

Please sign in to comment.