You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2024/12/30 17:54:18 UTC
(couchdb) 09/10: rm mem3 and couch_mrview
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch fix-elixir-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit b60c2dcde3b9a4742680472d36726e522aab9bca
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Mon Dec 30 08:54:19 2024 -0600
rm mem3 and couch_mrview
---
Makefile | 3 ++-
mix.exs | 27 +++++++++++++++++++++------
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index a5aced923..d7b9dc0f1 100644
--- a/Makefile
+++ b/Makefile
@@ -472,8 +472,9 @@ clean:
@rm -rf .rebar/
@rm -f bin/couchjs
@rm -f bin/weatherreport
- @rm -rf src/*/ebin
@rm -rf src/*/.rebar
+ @rm -rf src/*/_build
+ @rm -rf src/*/ebin
@rm -rf src/*/priv/*.so
@rm -rf share/server/main.js share/server/main-ast-bypass.js share/server/main-coffee.js
@rm -rf tmp dev/data dev/lib dev/logs
diff --git a/mix.exs b/mix.exs
index ff7588313..152bc958d 100644
--- a/mix.exs
+++ b/mix.exs
@@ -50,7 +50,7 @@ defmodule CouchDBTest.Mixfile do
[
app: :couchdbtest,
version: "0.1.0",
- elixir: "~> 1.15",
+ elixir: "~> 1.18",
lockfile: Path.expand("mix.lock", __DIR__),
deps_path: Path.expand("src", __DIR__),
build_path: Path.expand("_build", __DIR__),
@@ -104,20 +104,24 @@ defmodule CouchDBTest.Mixfile do
]
couch_deps_list = [
- :b64url,
:config,
:couch,
- :couch_mrview,
:fabric,
+ :mem3,
+ :couch_mrview
+ ]
+
+ extra_deps_list = [
+ :b64url,
:jiffy,
:jwtf,
:meck,
- :mem3,
:mochiweb
]
- deps_list2 = Enum.map(couch_deps_list, &{&1, path: path(&1)})
- deps_list = deps_list1 ++ deps_list2
+ deps_list2 = Enum.map(extra_deps_list, &{&1, path: path(&1)})
+ deps_list3 = Enum.map(couch_deps_list, &{&1, path: path_ebin(&1)})
+ deps_list = deps_list1 ++ deps_list2 ++ deps_list3
# Some deps may be missing during source check
# Besides we don't want to spend time checking them anyway
@@ -133,6 +137,17 @@ defmodule CouchDBTest.Mixfile do
defp path(app) when is_atom(app), do: path(Atom.to_string(app))
defp path(app), do: Path.expand(app, Path.expand("src", __DIR__))
+ defp path_ebin(app) when is_atom(app), do: path(Atom.to_string(app))
+
+ defp path_ebin(app) do
+ v1 = Path.expand("src", __DIR__)
+ IO.inspect(v1)
+ IO.inspect(app ++ "/ebin")
+ v = Path.expand(app ++ "/ebin", Path.expand("src", __DIR__))
+ IO.inspect(v)
+ v
+ end
+
def get_test_paths(:test) do
Path.wildcard("src/*/test/exunit") |> Enum.filter(&File.dir?/1)
end