aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Söderqvist <[email protected]>2020-10-26 12:17:54 +0100
committerLoïc Hoguin <[email protected]>2020-11-30 16:16:17 +0100
commit393147ad487e0d8bc16b89960a7f2d2857805f8d (patch)
tree8235cae19469ffbe9dd0a12b4b33a3cd05630067
parent1762278d9654e5f90ab587cbde7bac0e2b220014 (diff)
downloaderlang.mk-393147ad487e0d8bc16b89960a7f2d2857805f8d.tar.gz
erlang.mk-393147ad487e0d8bc16b89960a7f2d2857805f8d.tar.bz2
erlang.mk-393147ad487e0d8bc16b89960a7f2d2857805f8d.zip
Add dep version in examples in README and user guide
Add dep_cowboy_commit 2.8.0 and a note in the user guide dependencies section that the versions in the package index are not always up to date.
-rw-r--r--README.asciidoc1
-rw-r--r--doc/src/guide/deps.asciidoc9
2 files changed, 10 insertions, 0 deletions
diff --git a/README.asciidoc b/README.asciidoc
index c397291..78a95a3 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -9,6 +9,7 @@ Embrace the power and simplicity of Makefiles.
[source,make]
PROJECT = webchat
DEPS = cowboy
+dep_cowboy_commit = 2.8.0
include erlang.mk
http://erlang.mk/guide/getting_started.html[Get started]
diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc
index 066a3d8..081f4f7 100644
--- a/doc/src/guide/deps.asciidoc
+++ b/doc/src/guide/deps.asciidoc
@@ -49,6 +49,15 @@ fetch and compile Cowboy. Erlang.mk will also ensure Cowboy
is available whenever you use the shell, run tests and any
other operations.
+Note though that you may need to specify the version of a
+dependency to use. Otherwise, you may get an outdated version,
+since the package index used by Erlang.mk is not always
+updated with the latest version of each package.
+
+[source,make]
+DEPS = cowboy
+dep_cowboy_commit = 2.8.0
+
Erlang.mk will fill in the application resource file with
all applications found in `DEPS`. But not all dependencies
are Erlang applications, and not all dependencies need to