Skip to content

Commit 629a5ef

Browse files
committed
Add comment explaining why the classpath is ordered differently
1 parent 5d16cd0 commit 629a5ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nix/mobile/jsbundle/default.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ stdenv.mkDerivation {
6767
'';
6868
buildPhase = ''
6969
# Assemble CLASSPATH from available clojure dependencies.
70-
# We append 'src' so it can find the local sources.
70+
# We prepend 'src' so it can find the local sources and prioritize
71+
# our own namespaces over dependencies, given that indirect dependencies
72+
# can also cause naming conflicts (e.g. prismatic/schema already uses
73+
# namespace schema.core).
7174
export CLASS_PATH="src:$(find ${deps.clojure} \
7275
-iname '*.jar' | tr '\n' ':')"
7376

0 commit comments

Comments
 (0)