snapcraft overwrites log file names on error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
snapcraft 8.0.2 from the stable channel.
The newer versions of snapcraft print output on one line, updating rather than scrolling.
When a part (such as an override-build snippet) fails, the log file is displayed, but snapcraft then overwrites that line. So it's not possible to easily copy/paste the log file in order to display it:
alan@nuc:
'override-build' in part 'spectrum-analyser' failed with code 1.lyser/
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.
Full execution log: '/home/
Note the CMakeOutput.log path is shown as:
'override-build' in part 'spectrum-analyser' failed with code 1.lyser/
It likely should be:
'override-build' in part 'spectrum-analyser' failed with code 1
project/
Steps to reproduce:
A simple part, which will fail due to a missing build-package.
spectrum-
plugin: nil
override-build: |
git clone --recursive https:/
cd 8BitAnalysers/
mkdir build
cd build
/
make
build-packages:
- build-essential
- cmake
- libgl-dev
- libx11-dev
- libxrandr-dev