Skip to content

Commit 1bb7109

Browse files
axelsonlukebakken
authored andcommitted
Skip runtime_false deps (#1)
Specifically will be used to not distribute nimble_parsec after merging elixir-lsp/elixir-ls#609 Update workflow
1 parent 1895cd0 commit 1bb7109

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CI
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77
push:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
mix:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ to your list of dependencies in `mix.exs`:
1818

1919
```elixir
2020
def deps do
21-
[{:mix_task_archive_deps, "~> 0.3.0"}]
21+
[{:mix_task_archive_deps, "~> 1.0"}]
2222
end
2323
```
2424

2525
Alternatively the package can be installed as an archive from release:
2626

2727
```
28-
mix archive.install https://github.com/hairyhum/mix_task_archive_deps/releases/download/0.3.0/mix_task_archive_deps-0.3.0.ez
28+
mix archive.install https://github.com/hairyhum/mix_task_archive_deps/releases/download/1.0.0/mix_task_archive_deps-1.0.0.ez
2929
```
3030

3131
The docs can be found at [https://hexdocs.pm/mix_task_archive_deps](https://hexdocs.pm/mix_task_archive_deps).

lib/mix/tasks/archive/build.deps.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ defmodule Mix.Tasks.Archive.Build.Deps do
6060
## Build delendencies archives
6161
Mix.Dep.load_on_environment(env: Mix.env())
6262
|> Enum.filter(fn %Mix.Dep{app: app} -> not Enum.member?(skip, app) end)
63+
|> Enum.filter(fn %Mix.Dep{opts: opts} -> Keyword.get(opts, :runtime, true) end)
6364
|> Enum.map(fn %Mix.Dep{app: app, status: status} ->
6465
version =
6566
case status do

0 commit comments

Comments
 (0)