Skip to content

Dependencies configuration cleanup - #539

Merged
andreypopp merged 19 commits into
masterfrom
refactor/dependencies
Oct 23, 2018
Merged

andreypopp merged 19 commits into
masterfrom
refactor/dependencies

Conversation

@andreypopp

@andreypopp andreypopp commented Oct 22, 2018 •

Copy link
Copy Markdown
Member

Part of #537

This splits Source.t into two cases:

type t = Dist of Dist.t and Link of link

Where Dist.t is a factored out part of previous Source.t which 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 SourceResolver and SourceStorage to operate on Dist.t rather than Source.t thus eliminating empty branches.

Finally we change VersionSpec.Source of Source.t case to be VersionSpec.Dist of Dist.t and thus we disallow link: 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.

@andreypopp
andreypopp force-pushed the refactor/dependencies branch from 340b2b3 to 26b77dc Compare October 23, 2018 16:57
@andreypopp andreypopp changed the title [WIP] Dependencies configuration cleanup Dependencies configuration cleanup Oct 23, 2018
@andreypopp
andreypopp merged commit 7be625c into master Oct 23, 2018
@andreypopp
andreypopp deleted the refactor/dependencies branch October 23, 2018 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

esy install doesn't detect changes to link:ed packages package.json files.

1 participant