-
Notifications
You must be signed in to change notification settings - Fork 448
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
feat(craft-application): support root packages for core24 #4617
feat(craft-application): support root packages for core24 #4617
Conversation
This allows the user to use "build-packages" and "build-snaps" at the root level of the snapcraft.yaml file.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/craft-application #4617 +/- ##
=============================================================
+ Coverage 88.83% 89.12% +0.29%
=============================================================
Files 327 331 +4
Lines 22033 22078 +45
=============================================================
+ Hits 19573 19678 +105
+ Misses 2460 2400 -60 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
tests/unit/models/test_projects.py
Outdated
class TestProjectTransform: | ||
"""Test Transform the Project.""" | ||
|
||
def test_root_packages_transform(self, project_yaml_data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be useful to have a test to ensure projects without build-packages
and build-snaps
are unmodified (i.e. the if
statement on line 181)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wording comments
Updated |
This allows the user to use "build-packages" and "build-snaps" at the root level of the snapcraft.yaml file.
Fixes: #4605