elm-github-install has a separate dependency-sources section which you can 
use to override the dependency versions. The readme has the following 
example

  "dependencies": {
    "gdotdesign/elm-install-test": "1.0.0 <= v < 2.0.0",
    "elm-lang/core": "5.0.0 <= v < 6.0.0",
    "elm-lang/svg": "2.0.0 <= v < 3.0.0",
    "elm-lang/dom": "1.1.1 <= v < 2.0.0"
  },
  "dependency-sources": {
    "elm-lang/core": "g...@github.com:elm-lang/core",
    "gdotdesign/elm-install-test": {
      "url": "gdotdes...@bitbucket.org:gdotdesign/elm-install-test",
      "ref": "master"
    }
  }


So you would specify your file:///uri in the "url" property and whatever 
git treeish value you want in "ref" (e.g. master). I'm not entirely sure 
how it works in the case that you override a transitive dependency. It may 
just ignore semantic versioning completely and use the version you've 
specified in the git reference or perhaps it resolves the git ref then 
pulls the version number in from it's elm-package.json. Because Elm uses a 
flat dependency structure specifying the dependency explicitly will be 
enough to constrain the transitive version as well.


On Wednesday, 1 February 2017 17:58:34 UTC+1, Rupert Smith wrote:
>
> On Wednesday, February 1, 2017 at 4:57:22 PM UTC, Rupert Smith wrote:
>>
>> This is actually something I have been wondering how to do because I 
>> wanted to do some hacking on elm-lang/virtual-dom, but I have no idea how 
>> to import the hacked version into another project in order to try it out.
>>
>
> Also, one does not normally include elm-lang/virtual-dom explicitly, it 
> gets sucked in as a transitive dependency of elm-lang/html or elm-lang/svg. 
> Is it possible to override transitive dependencies? 
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to