Replies: 1 comment 14 replies
-
|
Can we make the resolution based on a lockfile? so our version would be the hash of the commit. If there is no lock we pick the latest. |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How should we deal with transitive git dependencies? I'm thinking about the case where multiple packages in the dependency tree refer to one git package but pinned to different revisions. In the case of a parent package declaring the same git dependency of a child, I think it's clear that the parent's pin should override the child's (so
pkg3would be pinned to branch b in Example 1 below), but what about sibling dependencies (Example 2 below)?flowchart LR subgraph ex1["Example 1"] direction TB pkg11["pkg1"] pkg21["pkg2"] pkg31["pkg3"] pkg11 --> pkg21 pkg21 --"branch a"--> pkg31 pkg11 --"branch b"--> pkg31 end subgraph ex2["Example 2"] direction TB pkg12["pkg1"] pkg22["pkg2"] pkg32["pkg3"] pkg42["pkg4"] pkg12 --> pkg22 pkg12 --> pkg32 pkg22 --"branch a"--> pkg42 pkg32 --"branch b"--> pkg42 end ex1 ~~~ ex2This wouldn't be a problem with actual versions, since we could then just do dependency resolution to find a suitable version, but we don't have the luxury of versions here.
Beta Was this translation helpful? Give feedback.
All reactions