canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 14 forks source link

Missing line feed in error output #241

Open cmatsuoka opened 5 months ago

cmatsuoka commented 5 months ago

Bug Description

Snapcraft failed with the following error message:

'override-build' in part 'rockcraft' failed with code 1.ipt for part 'rockcraft'.
Review the scriptlet and make sure it's correct.
Failed to execute pack in instance.
Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

The first line has two overlapping messages: error: Failed to run the build script for part 'rockcraft'. and 'override-build' in part 'rockcraft' failed with code 1..

To Reproduce

Run snapcraft on a project containing an error in override-build.

part yaml

N/A

Relevant log output

2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.344 :: note: This error originates from a subprocess, and is likely not a problem with pip.
2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.405 :: error: Failed to run the build script for part 'rockcraft'.
2024-02-15 17:57:15.047 :: 2024-02-15 17:57:14.606 'override-build' in part 'rockcraft' failed with code 1.
2024-02-15 17:57:15.047 :: Review the scriptlet and make sure it's correct.
syncronize-issues-to-jira[bot] commented 5 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2522.

This message was autogenerated