▾ added common/deps.edn +9 -0 Viewed
new file mode 100644 @@ -0,0 +1,9 @@ 1 + { ;; This directory is a dependency rather than a source path, and only because 2 + ;; tools.deps has deprecated `:paths` that leave the project: `../common` in 3 + ;; flutter/deps.edn warned on every build. `:local/root` is the supported way 4 + ;; to say the same thing, and it needs a deps.edn here to point at. 5 + ;; 6 + ;; Nothing else: the deps of the two halves that compile this belong to those 7 + ;; halves. `.` is the whole directory, so frq.clock, frq.store and frq.io land 8 + ;; on the classpath exactly as they did. 9 + :paths [ "." ] }
new file mode 100644 @@ -0,0 +1,9 @@ 1 + { ;; This directory is a dependency rather than a source path, and only because 2 + ;; tools.deps has deprecated `:paths` that leave the project: `../common` in 3 + ;; flutter/deps.edn warned on every build. `:local/root` is the supported way 4 + ;; to say the same thing, and it needs a deps.edn here to point at. 5 + ;; 6 + ;; Nothing else: the deps of the two halves that compile this belong to those 7 + ;; halves. `.` is the whole directory, so frq.clock, frq.store and frq.io land 8 + ;; on the classpath exactly as they did. 9 + :paths [ "." ] }
▾ modified flake.nix +5 -3 Viewed
@@ -521,11 +521,13 @@ 521 521 export SSL_CERT_FILE = " ${ pkgs . cacert } / e t c / s s l / c e r t s / c a - b u n d l e . c r t " 522 522 mkdir - p " $ H O M E " " $ P U B _ C A C H E " " $ G I T L I B S " " $ c a c h e / m 2 " 523 523 524 - # The stub: our dependency files, nothing of our source. `:paths` 525 - # still names ../common, so that has to exist for tools.deps to 526 - # build a classpath — empty is enough. 524 + # The stub: our dependency files, nothing of our source. 525 + # ../common is a :local/root dependency now, so it has to exist 526 + # *and* carry a deps.edn for tools.deps to resolve — an empty 527 + # directory with that one file in it is enough. 527 528 proj = " $ N I X _ B U I L D _ T O P / s t u b " 528 529 mkdir - p " $ p r o j / s r c / s t u b " " $ N I X _ B U I L D _ T O P / c o m m o n " 530 + cp $ { ./common/deps.edn } " $ N I X _ B U I L D _ T O P / c o m m o n / d e p s . e d n " 529 531 cp $ { ./flutter/deps.edn } " $ p r o j / d e p s . e d n " 530 532 cp $ { ./flutter/pubspec.yaml } " $ p r o j / p u b s p e c . y a m l " 531 533 chmod u + w " $ p r o j / d e p s . e d n " " $ p r o j / p u b s p e c . y a m l "
@@ -521,11 +521,13 @@ 521 export SSL_CERT_FILE = " ${ pkgs . cacert } / e t c / s s l / c e r t s / c a - b u n d l e . c r t " 521 export SSL_CERT_FILE = " ${ pkgs . cacert } / e t c / s s l / c e r t s / c a - b u n d l e . c r t " 522 mkdir - p " $ H O M E " " $ P U B _ C A C H E " " $ G I T L I B S " " $ c a c h e / m 2 " 522 mkdir - p " $ H O M E " " $ P U B _ C A C H E " " $ G I T L I B S " " $ c a c h e / m 2 " 523 523 524 - # The stub: our dependency files, nothing of our source. `:paths` 524 + # The stub: our dependency files, nothing of our source. 525 - # still names ../common, so that has to exist for tools.deps to 525 + # ../common is a :local/root dependency now, so it has to exist 526 - # build a classpath — empty is enough. 526 + # *and* carry a deps.edn for tools.deps to resolve — an empty 527 + # directory with that one file in it is enough. 527 proj = " $ N I X _ B U I L D _ T O P / s t u b " 528 proj = " $ N I X _ B U I L D _ T O P / s t u b " 528 mkdir - p " $ p r o j / s r c / s t u b " " $ N I X _ B U I L D _ T O P / c o m m o n " 529 mkdir - p " $ p r o j / s r c / s t u b " " $ N I X _ B U I L D _ T O P / c o m m o n " 530 + cp $ { ./common/deps.edn } " $ N I X _ B U I L D _ T O P / c o m m o n / d e p s . e d n " 529 cp $ { ./flutter/deps.edn } " $ p r o j / d e p s . e d n " 531 cp $ { ./flutter/deps.edn } " $ p r o j / d e p s . e d n " 530 cp $ { ./flutter/pubspec.yaml } " $ p r o j / p u b s p e c . y a m l " 532 cp $ { ./flutter/pubspec.yaml } " $ p r o j / p u b s p e c . y a m l " 531 chmod u + w " $ p r o j / d e p s . e d n " " $ p r o j / p u b s p e c . y a m l " 533 chmod u + w " $ p r o j / d e p s . e d n " " $ p r o j / p u b s p e c . y a m l "