Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Adds minVersion to findPackageConfig{,Uri} methods. #125

Merged
merged 2 commits into from
May 23, 2022
Merged

Conversation

lrhn
Copy link
Member

@lrhn lrhn commented May 20, 2022

This parameter currently allows you to ignore .packages files
while searching for a configuration file.
If we later add a version 3 of the configuration, it should
also allow ignoring version 2 configurations.

@lrhn lrhn requested review from natebosch and johnniwinther May 20, 2022 09:29
@lrhn lrhn mentioned this pull request May 20, 2022
///
/// If [minVersion] is greated than 1, `.packages` files are ignored.
/// If [minVersion] is greater than the version read from the
/// `pacakage_config.json` file, it too is ignored.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pacakage_config.json -> package_config.json

lrhn added 2 commits May 23, 2022 11:19
This parameter currently allows you to ignore `.packages` files
while searching for a configuration file.
If we later add a version 3 of the configuration, it should
also allow ignoring version 2 configurations.
@lrhn lrhn merged commit cff98c9 into master May 23, 2022
@lrhn lrhn deleted the minVersion branch May 23, 2022 14:01
@@ -1,4 +1,11 @@
## 2.0.3-dev
## 2.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we ready to publish 2.1.0 now?

ignoring version 1, aka. `.packages` files.)

- Changes the version number of `SimplePackageConfig.empty` to the
current maximum version.

- Improve file read performance; improve lookup performance.
- Emit an error when a package is inside the package root of another package.
Copy link
Member Author

@lrhn lrhn Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll do that.

mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 9, 2024
…ckage_config#125)

* Adds `minVersion` to `findPackageConfig{,Uri}` methods.

This parameter currently allows you to ignore `.packages` files
while searching for a configuration file.
If we later add a version 3 of the configuration, it should
also allow ignoring version 2 configurations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants