Skip to content

Commit 0386cb7

Browse files
authored
Link to Pub docs (#1)
1 parent ca06174 commit 0386cb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pubgrub_crate/strategy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The strategy employed to choose such package and version
1313
cannot change the existence of a solution or not,
1414
but can drastically change the performances of the solver,
1515
or the properties of the solution.
16-
The documentation of Pub
17-
(PubGrub implementation for the dart programming language)
18-
states the following.
16+
The documentation of [Pub](https://github.com/dart-lang/pub)
17+
([Dart](https://github.com/dart-lang/language)'s package manager that uses PubGrub under the hood)
18+
[states the following](https://github.com/dart-lang/pub/blame/SDK-2.10.0-64.0.dev/doc/solver.md#L446-L449):
1919

2020
> Pub chooses the latest matching version
2121
> of the package with the fewest versions
@@ -24,11 +24,11 @@ states the following.
2424
> since these packages will run out of versions to try more quickly.
2525
> But there's likely room for improvement in these heuristics.
2626
27-
In pubgrub, decision making responsability is split in two places.
27+
In our implementation of PubGrub, decision making responsibility is divided into two pieces.
2828
The resolver takes care of making a preselection for potential packages
2929
and corresponding ranges of versions.
3030
Then it's the dependency provider that has the freedom of employing
31-
the strategy it wants to pick one package version within
31+
the strategy of picking a single package version within
3232
the `choose_package_version` method.
3333

3434
```rust

0 commit comments

Comments
 (0)