2
2
3
3
## v0.8.0
4
4
5
- In the last relase (0.7.x) we added two additional aliases ` deps.get ` and
6
- ` deps.update ` . In this release, we added an alias for ` run ` .
7
- This led to a point where is became unreasonable to manage
8
- all the required aliases in the project ` mix.exs ` . We changed the pratice to
9
- allow ` nerves_bootstrap ` to manage the required aliases for you by calling
10
- ` Nerves.Bootstrap.add_aliases/1 ` , however, this causes users who
11
- did not have the ` nerves_bootstrap ` archive installed to be stuck in an error
12
- loop unless they would cd to a directory that did not contain an offending
13
- ` mix.exs ` file to install the missing archive.
5
+ The v0.7.x and earlier releases only required two aliases in your ` mix.exs ` to
6
+ pull in the Nerves enhancements to ` mix.exs ` . This releases adds more aliases.
7
+ Rather than requiring your ` mix.exs ` file to be updated if the Nerves aliase
8
+ hooks change in the future, we recommend updating your ` mix.exs ` as follows:
14
9
15
- This version provides a safer way of allowing ` nerves_bootstrap ` to manage
16
- its required aliases by hooking into a single alias: ` loadconfig ` .
17
-
18
-
19
- To update, you will need to modify your ` mix.exs ` to the following:
20
10
``` elixir
21
11
# mix.exs
22
12
@@ -27,20 +17,22 @@ To update, you will need to modify your `mix.exs` to the following:
27
17
]
28
18
end
29
19
30
- # Starting nerves_bootstrap adds the required aliases to Mix.Project.config()
31
- # Aliases are only added if MIX_TARGET is set.
32
- def bootstrap (args) do
20
+ # Starting nerves_bootstrap pulls in the Nerves hooks to mix, but only
21
+ # if the MIX_TARGET environment variable is set.
22
+ defp bootstrap (args) do
33
23
Application .start (:nerves_bootstrap )
34
24
Mix .Task .run (" loadconfig" , args)
35
25
end
36
26
```
37
27
28
+ This release has the following changes:
29
+
38
30
* Enhancements
39
- * ` precompile ` will compile all Nerves packages instead of only the system
40
- and its children.
41
- * Calling ` run ` while ` MIX_TARGET ` is set will raise an exception for
42
- trying to run cross compiled code on the host.
43
- * ` Application.start(:nerves_bootstrap) ` will attempt to add aliases to the
31
+ * ` precompile ` will compile all Nerves packages instead of only the system and
32
+ its children.
33
+ * Calling ` run ` while ` MIX_TARGET ` is set will raise an exception for trying
34
+ to run cross compiled code on the host.
35
+ * ` Application.start(:nerves_bootstrap) ` will attempt to add aliases to the
44
36
mix project on the top of the stack if ` MIX_TARGET ` is set.
45
37
46
38
## v0.7.1
@@ -55,9 +47,9 @@ To update, you will need to modify your `mix.exs` to the following:
55
47
* ` nerves_bootstrap ` will check for updates when ` nerves.deps.get ` is called.
56
48
* Added ` Nerves.Bootstrap.add_aliases/1 `
57
49
This helper function ensures that your project has the required Nerves
58
- mix aliases defined and in the correct execution order. The function takes
50
+ mix aliases defined and in the correct execution order. The function takes
59
51
the existing aliases as a keyword list and injects the required Nerves aliases.
60
- You will need to update your ` mix.exs ` target aliases to use this version of
52
+ You will need to update your ` mix.exs ` target aliases to use this version of
61
53
` nerves_bootstrap ` like this:
62
54
63
55
``` elixir
@@ -72,11 +64,11 @@ To update, you will need to modify your `mix.exs` to the following:
72
64
You should also update your required dependency for nerves to
73
65
`{:nerves , " ~> 0.9" , runtime: false }`
74
66
* Bug Fixes
75
- * disable precompiler when calling `mix nerves.clean` to prevent having to
67
+ * disable precompiler when calling `mix nerves.clean` to prevent having to
76
68
build the package so we can clean it.
77
- * Fixes issue where project dependencies that contain calls to `System .get_env `
78
- in their config or mix file or rebar deps that have `rebar- config.script`
79
- overrides that make `os: getenv` calls were not being configured for the
69
+ * Fixes issue where project dependencies that contain calls to `System .get_env `
70
+ in their config or mix file or rebar deps that have `rebar- config.script`
71
+ overrides that make `os: getenv` calls were not being configured for the
80
72
cross compile environment.
81
73
82
74
## v0.6.4
@@ -146,7 +138,7 @@ To update, you will need to modify your `mix.exs` to the following:
146
138
`-- target` to the generator. Defaults to declaring all officially supported
147
139
Nerves Targets .
148
140
* A default cookie is generated and placed in the vm.args. the cookie can
149
- be set by passing `-- cookie`
141
+ be set by passing `-- cookie`
150
142
151
143
## v0.3.1
152
144
* Bug Fixes
0 commit comments