Skip to content

Don't consider resolution outdated in dev-releases #3678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2022
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
7 changes: 1 addition & 6 deletions lib/src/entrypoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -896,18 +896,13 @@ Unable to satisfy `$pubspecPath` using `$lockFilePath`$suffix.${forDetails()}$su
/// Checks whether or not the `.dart_tool/package_config.json` file is was
/// generated by a different sdk down changes in minor versions.
///
/// For pre-releases we always consider the package_config.json out of date
/// when the version changes.
///
/// Throws [DataException], if `.dart_tool/package_config.json` the version
/// changed sufficiently.
void _checkPackageConfigSameDartSdk() {
final generatorVersion = packageConfig.generatorVersion;
if (generatorVersion == null ||
generatorVersion.major != sdk.version.major ||
generatorVersion.minor != sdk.version.minor ||
generatorVersion.isPreRelease ||
sdk.version.isPreRelease) {
generatorVersion.minor != sdk.version.minor) {
dataError('The sdk was updated since last package resolution. Please run '
'"$topLevelProgram pub get" again.');
}
Expand Down