couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject couch-log commit: updated refs/heads/offline-builds to 44b69cf
Date Sun, 12 Oct 2014 18:06:27 GMT
Repository: couchdb-couch-log
Updated Branches:
  refs/heads/offline-builds [created] 44b69cfaa


Make git clone base URL configurable to enable full offline builds.

This is a first stab. I tried using Rebar's deps_dir as per
https://github.com/rebar/rebar/wiki/Dynamic-configuration
but I couldn't get it to recognise paths vs. URLs. Still
there might be a better way.

The eventual goal would be to have a full mirror of all repos
locally and being able to set the dep src for all CouchDB
dependencies via an environment variable. It is simple
enough for the main couchdb repo, but some modules, like
couch_log here define their own dependencies and they should
pick up the local dep src as well.

So yeah, weaving my hands a little, but wanted to throw this
into the ring for discussion. Let me know what you think and
how this can be done better :)

Thanks!


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/commit/44b69cfa
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/tree/44b69cfa
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/diff/44b69cfa

Branch: refs/heads/offline-builds
Commit: 44b69cfaad1ea29b3b02aa5852accded532447b2
Parents: 35ace62
Author: Jan Lehnardt <jan@apache.org>
Authored: Sun Oct 12 20:01:26 2014 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun Oct 12 20:01:26 2014 +0200

----------------------------------------------------------------------
 rebar.config        |  7 -------
 rebar.config.script | 15 +++++++++++++++
 2 files changed, 15 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/44b69cfa/rebar.config
----------------------------------------------------------------------
diff --git a/rebar.config b/rebar.config
deleted file mode 100644
index dee56d4..0000000
--- a/rebar.config
+++ /dev/null
@@ -1,7 +0,0 @@
-{deps, [
-    {lager, ".*", {git, "https://git-wip-us.apache.org/repos/asf/couchdb-lager.git", {branch,
"master"}}}
-]}.
-
-{erl_opts, [debug_info, {parse_transform, lager_transform}]}.
-
-

http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/44b69cfa/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
new file mode 100644
index 0000000..fd78f81
--- /dev/null
+++ b/rebar.config.script
@@ -0,0 +1,15 @@
+ASF = "https://git-wip-us.apache.org/repos/asf/".
+
+BaseUrl = case os:getenv("COUCH_GIT_BASE_URL") of
+  false -> ASF;
+  [] -> ASF;
+  Else ->
+    Else
+end.
+
+[
+  {deps, [
+      {lager, ".*", {git, BaseUrl ++ "couchdb-lager.git", {branch, "master"}}}
+  ]},
+  {erl_opts, [debug_info, {parse_transform, lager_transform}]}
+].


Mime
View raw message