Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/explanation/package-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stay installable with opam.
This section describes what happens in a Dune project using the package
management feature.

## Dependency Selection
### Dependency Selection

The first step is to determine which packages need to be installed.
Traditionally this has been defined in the `depends` field of a project's opam
Expand All @@ -64,7 +64,7 @@ Dune will fall back to reading dependencies from `.opam` files when the package
is not defined in `dune-project`.


## Locking
### Locking

Given the list of the project's dependencies and their version
constraints, the next steps are:
Expand Down Expand Up @@ -105,7 +105,7 @@ The information is stored in a directory (`dune.lock` by default) as separate
files, to reduce potential merge conflicts and simplify code review. Storing
additional files like patches is also simpler this way.

### Package Repository Management
#### Package Repository Management

To find a valid solution that allows a project to be built, it is necessary to
know what packages exist, what versions of these packages exist, and what other
Expand Down Expand Up @@ -148,7 +148,7 @@ Dune uses two repositories by default:
work within Dune Package Management upstream. Check the
[compatibility](#compatibility) section for details.

### Solving
#### Solving

After Dune has read the constraints and loaded set of candidate packages, it is
necessary to determine which packages and versions should be selected for the
Expand Down Expand Up @@ -180,7 +180,7 @@ in the build step.
:::

(building)=
## Building
### Building

When building, Dune will read the information from the lock directory and set
up rules for the packages. Check {doc}`/explanation/mental-model` for details
Expand Down
Loading