Profpatsch / yarn2nix

Build and deploy node packages with nix from yarn.lock files.
MIT License
85 stars 21 forks source link

Investigate alternative git resolved URLs #59

Open sternenseemann opened 3 years ago

sternenseemann commented 3 years ago

From #58: Things in the wild (red) and what yarn2nix supports (green).

To investigate: Are these standard and can we support them? If yes, implement it.

diff --git a/package.json b/package.json
index 52994abfd..bf100cb66 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
     "child-process-promise": "^2.2.1",
     "clean-css-cli": "^4.3.0",
     "elm": "^0.19.1",
-    "elm-analyse": "stil4m/elm-analyse#701b8b4013a4f057b9382d368e42adc6fe08e14e",
+    "elm-analyse": "git+https://github.com/stil4m/elm-analyse.git",
     "elm-format": "0.8.2",
     "elm-test": "^0.19.1-revision4",
     "less": "^3.10.3",
diff --git a/yarn.lock b/yarn.lock
index 58e4a43a2..101020072 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2028,9 +2028,9 @@ elliptic@^6.5.3:
     minimalistic-assert "^1.0.0"
     minimalistic-crypto-utils "^1.0.0"

-elm-analyse@stil4m/elm-analyse#701b8b4013a4f057b9382d368e42adc6fe08e14e:
+"elm-analyse@git+https://github.com/stil4m/elm-analyse.git":
   version "0.16.5"
-  resolved "https://codeload.github.com/stil4m/elm-analyse/tar.gz/701b8b4013a4f057b9382d368e42adc6fe08e14e"
+  resolved "git+https://github.com/stil4m/elm-analyse#701b8b4013a4f057b9382d368e42adc6fe08e14e"
   dependencies:
     body-parser "1.19.0"
     express "4.17.1"