Repository navigation
Dependencies configuration cleanup - #539
Merged
Merged
Conversation
Prev (Source module):
type t =
| LocalPathLink ...
| ...
Now:
type t =
| Link ...
| Dist of dist
and dist =
| ...
Next we will special functions into working on dist and source/links
separately.
Specialize it to work with Dist.t rather than with Source.t. That makes it simpler as we don't have to skip over Link branches anymore.
We map links to `LocalPath`.
Rename will follow.
Just some utilities to fail gracefully.
andreypopp
force-pushed
the
refactor/dependencies
branch
from
October 23, 2018 16:57
340b2b3 to
26b77dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #537
This splits
Source.tinto two cases:Where
Dist.tis a factored out part of previousSource.twhich specifies the location of the package.The motivation is two untangle the location of the package from the dependency kind (link vs non-link).
Further commits refactor
SourceResolverandSourceStorageto operate onDist.trather thanSource.tthus eliminating empty branches.Finally we change
VersionSpec.Source of Source.tcase to beVersionSpec.Dist of Dist.tand thus we disallowlink:dependencies in constraints, leaving them only"resolutions". This makes sense as links are sandbox-level config as they are not composable (and frankly doesn't make sense) on package level.Keeping links in
"resolutions"allows us to know all the links for the sandbox without running the constraint solver. Then we fix #529 by including dependency checksums of linked packages.