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

lifecycle: automatically stage dependencies #2144

Merged
merged 1 commit into from
May 29, 2018

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented May 23, 2018

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on bug reports?
  • If this is a new feature. Have you discussed the design on the forum?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh unit?

Take the following situation: we have two parts, A and B. A depends on B by way of having after: [B]. Today, if one runs snapcraft pull A, the snapcraft CLI errors out complaining that it needs to stage B first, requiring one to run snapcraft pull A B. Not only is this an error, it's a RuntimeError, causing a traceback.

This PR fixes LP: #1774018 by no longer erroring in this situation, and just staging B like the user wants.

Take the following situation: we have two parts, `A` and `B`. `A`
depends on `B` by way of having `after: [B]`. Today, if one runs
`snapcraft pull A`, the snapcraft CLI errors out complaining that it
needs to stage `B` first, requiring one to run `snapcraft pull A B`. Not
only is this an error, it's a `RuntimeError`, causing a traceback.

Stop erroring in this situation, and just stage `B` like the user wants.

Fixes SNAPCRAFT-10

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
@kyrofa kyrofa force-pushed the feature/auto_build_dependencies branch from f522e06 to 98221c8 Compare May 23, 2018 20:26
@codecov-io
Copy link

codecov-io commented May 23, 2018

Codecov Report

Merging #2144 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2144      +/-   ##
==========================================
+ Coverage   91.02%   91.03%   +<.01%     
==========================================
  Files         193      193              
  Lines       12182    12178       -4     
  Branches     1820     1817       -3     
==========================================
- Hits        11089    11086       -3     
- Misses        751      752       +1     
+ Partials      342      340       -2
Impacted Files Coverage Δ
snapcraft/internal/lifecycle/_runner.py 90.47% <100%> (+0.47%) ⬆️
snapcraft/plugins/jhbuild.py 31.62% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 582731c...98221c8. Read the comment docs.

@sergiusens sergiusens merged commit 2cb230b into canonical:master May 29, 2018
@kyrofa kyrofa deleted the feature/auto_build_dependencies branch May 29, 2018 19:13
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.

None yet

3 participants