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

providers: move mount logic to lifecycle.py #3930

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

mr-cal
Copy link
Collaborator

@mr-cal mr-cal commented Oct 3, 2022

  • 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?

Moves the snapcraft-specific calls for mounting directories to parts/lifecycle.py.

Similar to canonical/rockcraft#82

(CRAFT-1397)

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
snapcraft/parts/lifecycle.py Outdated Show resolved Hide resolved
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Copy link
Contributor

@facundobatista facundobatista left a comment

Choose a reason for hiding this comment

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

Wonderful!

@mr-cal mr-cal enabled auto-merge (squash) October 4, 2022 12:45
@mr-cal mr-cal disabled auto-merge October 4, 2022 12:45
@mr-cal mr-cal enabled auto-merge (squash) October 4, 2022 12:45
@codecov-commenter
Copy link

Codecov Report

Merging #3930 (8b310b7) into main (f0173be) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3930      +/-   ##
==========================================
+ Coverage   89.88%   89.91%   +0.03%     
==========================================
  Files          61       61              
  Lines        4170     4165       -5     
==========================================
- Hits         3748     3745       -3     
+ Misses        422      420       -2     
Impacted Files Coverage Δ
snapcraft/providers/_lxd.py 70.17% <ø> (-1.50%) ⬇️
snapcraft/providers/_multipass.py 64.15% <ø> (-0.26%) ⬇️
snapcraft/providers/_provider.py 91.42% <ø> (ø)
snapcraft/parts/lifecycle.py 88.49% <100.00%> (+0.18%) ⬆️

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

@mr-cal mr-cal merged commit 1c3a7eb into canonical:main Oct 4, 2022
@mr-cal mr-cal deleted the craft-providers-mount branch October 4, 2022 13:20
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.

3 participants