-
Notifications
You must be signed in to change notification settings - Fork 75
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
build: inform user that packing charm may take time (CRAFT-347) #428
Conversation
Let the user know which charm is being packed and that it may take some time. Move launched_environment() logic into pack_charm_in_instance() to have the information required (charm name) prior to launching. Example output: ``` $ charmcraft pack Packing charm 'foo_ubuntu-18.04-amd64.charm' which may take several minutes... Created 'foo_ubuntu-18.04-amd64.charm'. Packing charm 'foo_ubuntu-20.04-amd64.charm' which may take several minutes... Created 'foo_ubuntu-20.04-amd64.charm'. ``` Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
charmcraft/commands/build.py
Outdated
raise CommandError( | ||
f"Failed to build charm for bases index '{bases_index}'." | ||
) from error | ||
logger.info(f"Packing charm {charm_name!r} which may take several minutes...") |
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.
Mentioning minutes gives me a Windows 95 progress bar vibe, won't age well
logger.info(f"Packing charm {charm_name!r} which may take several minutes...") | |
logger.info(f"Packing charm {charm_name!r}...") |
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.
Haha, well I expect it to be redone in a month or so with @facundos new messages / status handling. Will update.
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.
Done
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
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.
+1
Let the user know which charm is being packed and that it may take some
time. Move launched_environment() logic into pack_charm_in_instance()
to have the information required (charm name) prior to launching.
Example output:
Signed-off-by: Chris Patterson chris.patterson@canonical.com