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

meta: use build-for in snap.yaml architecture #4150

Merged
merged 3 commits into from
May 19, 2023

Conversation

mr-cal
Copy link
Collaborator

@mr-cal mr-cal commented May 17, 2023

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run pytest tests/unit?

Details

Previously, using build-for: all in a snapcraft project would cause meta/snap.yaml to contain the build-on architecture, due to this line from my first implementation of adding support for the architectures keyword.

Now, build-for: all will cause meta/snap.yaml to use architectures: all.

Source

https://bugs.launchpad.net/snapcraft/+bug/1999580
https://forum.snapcraft.io/t/incorrect-architecture-with-snapcraft-7-x-and-build-for-build-on/34130
(CRAFT-1535)

snapcraft/parts/lifecycle.py Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented May 17, 2023

Codecov Report

Merging #4150 (df68e51) into main (6f62368) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head df68e51 differs from pull request most recent head 4645c97. Consider uploading reports for the commit 4645c97 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main    #4150      +/-   ##
==========================================
+ Coverage   94.80%   94.84%   +0.03%     
==========================================
  Files         648      648              
  Lines       54280    54292      +12     
==========================================
+ Hits        51461    51494      +33     
+ Misses       2819     2798      -21     
Impacted Files Coverage Δ
snapcraft/parts/lifecycle.py 92.90% <ø> (+4.19%) ⬆️
tests/unit/parts/test_lifecycle.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

snapcraft/parts/lifecycle.py Outdated Show resolved Hide resolved
snapcraft/parts/lifecycle.py Outdated Show resolved Hide resolved
tests/unit/parts/test_lifecycle.py Show resolved Hide resolved
mr-cal added 2 commits May 18, 2023 17:23
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@sergiusens sergiusens merged commit 77d3454 into canonical:main May 19, 2023
@mr-cal mr-cal deleted the snap-yaml-arch branch May 19, 2023 02:38
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.

5 participants