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(expand-extensions): use the Application's project #5106

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lengau
Copy link
Contributor

@lengau lengau commented Oct 9, 2024

Fixes LP bug https://bugs.launchpad.net/snapcraft/+bug/2083964

Instead of parsing the project again itself, expand-extensions now uses the project provided by the application. The output is changed slightly, but I believe it reflects a more accurate expansion.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox run -m lint?
  • Have you successfully run tox run -e test-py310? (supported versions: py39, py310, py311, py312)

@lengau lengau requested a review from mr-cal October 9, 2024 23:31
Fixes LP bug https://bugs.launchpad.net/snapcraft/+bug/2083964

Instead of parsing the project again itself, expand-extensions now uses
the project provided by the application. The output is changed slightly,
but I believe it reflects a more accurate expansion.
Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

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

I had been putting off this review because it was in draft, but this is the correct fix and looks ready-to-rock.

@lengau lengau marked this pull request as ready for review January 20, 2025 02:57
@lengau lengau requested a review from tigarmo January 20, 2025 03:12
@mr-cal
Copy link
Collaborator

mr-cal commented Jan 21, 2025

craft_platforms._errors.InvalidBaseError: cannot specify a core 'build-base' alongside a 'base'

This failure is a consequence of using pydantic validators to modify the data here.

There's probably not a way around this error besides removing that validator.

@lengau
Copy link
Contributor Author

lengau commented Jan 22, 2025

@mr-cal as a note I had to change some other tests for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants