-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: only support bootstrapping with
pubspec_overrides.yaml
(#430)
- Loading branch information
Showing
29 changed files
with
358 additions
and
847 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: Migrations | ||
description: How to migrate between major versions of Melos. | ||
--- | ||
|
||
# Migrations | ||
|
||
## 2.0.0 to 3.0.0 | ||
|
||
### Local package linking with `pubspec_overrides.yaml` | ||
|
||
The initial mechanism used by Melos to link local packages for development had | ||
some issues when interacting with other tooling. An often-encountered error is | ||
"The pubspec.yaml file has changed since the pubspec.lock file was generated" | ||
([#117](https://github.com/invertase/melos/issues/117)). | ||
|
||
To resolve this issue, an alternative mechanism has been implemented which | ||
generates `pubspec_overrides.yaml` files in the root of each package, for which | ||
dependencies need to be overridden. Before Melos 3.0.0, this mechanism had to be | ||
opted into by setting `command/bootstrap/usePubspecOverrides` in `melos.yaml` to | ||
`true`. | ||
|
||
This is now the only mechanism used by Melos and the `usePubspecOverrides` | ||
configuration option has been removed. | ||
|
||
Typically `pubspec_overrides.yaml` files should be ignored by git. To ignore | ||
these files, add the following to your `.gitignore` file: | ||
|
||
``` | ||
pubspec_overrides.yaml | ||
``` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Melos Example | ||
|
||
> See the [documentation](https://docs.page/invertase/melos) for example project structures. | ||
> See the [documentation](https://melos.invertase.dev) for example project | ||
> structures. |
Oops, something went wrong.