← Back to issue list

snapcraft overwrites log file names on error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2052798
Type
issue
State
open
Author
~popey
Labels
—
Created
Updated
Closed
—

Current evaluation

Failure logs are overwritten by subsequent status messages because error paths lack line breaks, truncating the CMake log path. The valid report is reproducible but has not been triaged.

Suggested action: needs triage

Reason: The report provides Snapcraft 8.0.2, an exact command and failing part configuration, and expected output with separate lines, making the defect concrete and reproducible. However, there are no labels, maintainer comments, or triage signals, and investigation is still needed to locate the responsible formatter or dependency.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 20 Complexity: 46 Confidence: 70 Actionability: 77

Issue body

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:~/Source/popey/spectrum-analyser-snap$ snapcraft --use-lxd 'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". 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/alan/.local/state/snapcraft/log/snapcraft-20240209-115359.161950.log' Note the CMakeOutput.log path is shown as: 'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". It likely should be: 'override-build' in part 'spectrum-analyser' failed with code 1 project/parts/spectrum-analyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". Steps to reproduce: A simple part, which will fail due to a missing build-package. spectrum-analyser: plugin: nil override-build: | git clone --recursive https://github.com/TheGoodDoktor/8BitAnalysers cd 8BitAnalysers/Source/ZXSpectrum mkdir build cd build /usr/bin/cmake .. make build-packages: - build-essential - cmake - libgl-dev - libx11-dev - libxrandr-dev

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 20
Complexity: 46
Confidence: 70
Actionability: 77
needs triage Failure logs are overwritten by subsequent status messages because error paths lack line breaks, truncating the CMake log path. The valid report is reproducible but has not been triaged.
stealth/space-bunny-alpha
Impact: 38
Quick Win: 23
Complexity: 37
Confidence: 95
Actionability: 97
close resolved Snapcraft 8.0.2 overwrote part of a multiline build-error log path with later progress output. craft-cli#270 subsequently changed error reporting to preserve each line.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 35
Staleness: 85
Complexity: 30
Confidence: 60
Support Request: 40
needs triage snapcraft error messages overwrite log file paths on terminal, making them hard to copy
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 0
needs triage Terminal output overwrites log file paths on build failure, making them unreadable. Unlabeled, no maintainer response, inactive for ~2.4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 5
close stale Bug in snapcraft where terminal output overwrites the displayed log file path on build failure, preventing easy copying. Unlabelled, no maintainer response, inactive for ~2.4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 5
close stale Bug in snapcraft where terminal output overwrites the displayed log file path on build failure, preventing easy copy-pasting. Unlabelled, no maintainer response, inactive for over two years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.