We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e3a78 commit 18d96f7Copy full SHA for 18d96f7
nix/mobile/jsbundle/default.nix
@@ -67,9 +67,12 @@ stdenv.mkDerivation {
67
'';
68
buildPhase = ''
69
# Assemble CLASSPATH from available clojure dependencies.
70
- # We append 'src' so it can find the local sources.
71
- export CLASS_PATH="$(find ${deps.clojure} \
72
- -iname '*.jar' | tr '\n' ':')src"
+ # We prepend 'src' so it can find the local sources and prioritize
+ # our own namespaces over dependencies, given that indirect dependencies
+ # can also cause naming conflicts (e.g. prismatic/schema already uses
73
+ # namespace schema.core).
74
+ export CLASS_PATH="src:$(find ${deps.clojure} \
75
+ -iname '*.jar' | tr '\n' ':')"
76
77
# target must be one of the builds defined in shadow-cljs.edn
78
java -cp "$CLASS_PATH" clojure.main \
0 commit comments