Skip to content
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

fix(manager/pub): extract sdk constraint correctly #23367

Merged
merged 12 commits into from Aug 7, 2023
Merged

fix(manager/pub): extract sdk constraint correctly #23367

merged 12 commits into from Aug 7, 2023

Conversation

zeshuaro
Copy link
Contributor

Changes

Fix the pub manager to extract SDK constraint correctly for running artifacts update by parsing the pubspec.lock file which is a YAML file instead of using regex.

Context

I don't think there are any logs when extracting the SDK constraint, but basically the current implementation of getFlutterConstraint and getDartConstraint always return undefined for my Flutter app repository, which means the latest version of Flutter is always being used.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@zeshuaro zeshuaro changed the title fix: pub artifacts update to extract sdk constraint correctly fix(manager/pub): pub artifacts update to extract sdk constraint correctly Jul 14, 2023
lib/modules/manager/pub/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/types.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/artifacts.ts Outdated Show resolved Hide resolved
@zeshuaro zeshuaro marked this pull request as draft July 18, 2023 07:19
@zeshuaro zeshuaro requested a review from viceice July 20, 2023 07:42
lib/modules/manager/pub/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/utils.ts Outdated Show resolved Hide resolved
@zeshuaro zeshuaro marked this pull request as ready for review July 21, 2023 08:54
@zeshuaro zeshuaro requested a review from viceice July 21, 2023 08:55
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

I prefer null over undefined

lib/modules/manager/pub/__fixtures__/pubspec.invalid.lock Outdated Show resolved Hide resolved
lib/modules/manager/pub/utils.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/utils.ts Show resolved Hide resolved
@zeshuaro zeshuaro requested a review from viceice July 24, 2023 08:25
@zeshuaro zeshuaro requested a review from viceice July 25, 2023 11:18
@zeshuaro zeshuaro requested a review from viceice July 26, 2023 08:03
@rarkins rarkins requested a review from zharinov August 5, 2023 04:59
lib/modules/manager/pub/schema.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/pub/artifacts.ts Outdated Show resolved Hide resolved
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
@zeshuaro zeshuaro requested a review from zharinov August 6, 2023 14:37
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

just a small z

lib/modules/manager/pub/utils.spec.ts Outdated Show resolved Hide resolved
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@viceice viceice changed the title fix(manager/pub): pub artifacts update to extract sdk constraint correctly fix(manager/pub): extract sdk constraint correctly Aug 7, 2023
@viceice viceice added this pull request to the merge queue Aug 7, 2023
Merged via the queue into renovatebot:main with commit ee6c40f Aug 7, 2023
36 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 36.35.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@zeshuaro zeshuaro deleted the fix/pub-update-artifacts-constraint branch August 7, 2023 09:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
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.

None yet

4 participants