-
Notifications
You must be signed in to change notification settings - Fork 6
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
Charmhub/address charmhub limitiations #24
Charmhub/address charmhub limitiations #24
Conversation
addyess
commented
Feb 4, 2022
- improve API used to fetch charmhub info
- handle bundle resource revisions to override the charm default revision on non-snap based resources
….priv in lxd, and made 'bundles' a required argument
… into charmhub/address-charmhub-limitiations
…ources from charmhub
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
==========================================
+ Coverage 85.63% 86.54% +0.90%
==========================================
Files 1 1
Lines 362 379 +17
==========================================
+ Hits 310 328 +18
+ Misses 52 51 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
… into charmhub/address-charmhub-limitiations
ca54c4b
to
2145632
Compare
Addresses #10 as well |
2145632
to
4a7c388
Compare
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.
LGTM. Really nice job handling resources for both stores as well as handling charm channels vs charm snap channels.
@@ -332,9 +326,38 @@ def download(self): | |||
check_call(shlx(f"mv {tgz} {snap_target}")) | |||
|
|||
|
|||
class ResourceDownloader(Downloader): | |||
URL = "https://api.jujucharms.com/charmstore/v5" | |||
class Resource(namedtuple("Resource", "name, type, path, revision, url_format")): |
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.
💯