Skip to content

Commit

Permalink
Make sure all tasks are available
Browse files Browse the repository at this point in the history
  • Loading branch information
svrdlans committed Sep 25, 2024
1 parent 24f4478 commit 17a2b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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.7.5 - 2024-09-25

### Fixed

- Makes sure all harness archive tasks are loaded and available to use

## 0.7.4 - 2023-08-09

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion lib/harness/manifest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@ defmodule Harness.Manifest do
:ok = ProjectStack.push(__MODULE__, config, Path.expand(path))

deps = Mix.Dep.cached()
archive_path = archive_path()

:ok =
deps
|> Enum.flat_map(&Mix.Dep.load_paths/1)
|> (&[archive_path() | &1]).()
|> Enum.each(&Code.append_path/1)

Code.append_path(archive_path)
Mix.Task.load_tasks([archive_path])

deps
|> Enum.map(fn %Mix.Dep{app: app} -> app end)
|> Enum.each(&Application.ensure_started/1)
Expand Down

0 comments on commit 17a2b6e

Please sign in to comment.