← Back to issue list

snapcraft doesn't remove the build.sh scripts after part cleanup

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1882793
Type
issue
State
open
Author
~dmitriis
Labels
Created
Updated
Closed

Current evaluation

2020 report that snapcraft clean leaves parts/*/run/build.sh behind, so build_environment changes don't propagate. No maintainer response in ~5 years; snapcraft 4.x is EOL and the craft-parts-based 8.x clean removes whole part dirs.

Suggested action: close stale

Reason: The issue targets snapcraft 4.0.4 (2020), a version long out of support, and the parts system was rewritten on craft-parts in snapcraft 8.x, where clean removes the entire part directory (including parts/<part>/run/build.sh) and the build script is regenerated each build, so the reported symptom is no longer reproducible. Zero comments and no maintainer interaction for ~5 years confirm it is abandoned; a similar 4.x-era clean bug (LP #1591056) was likewise closed without resolution.

Impact: 35 Quick Win: 21.0 Staleness: 95 Complexity: 40 Confidence: 65 Support Request: 10

Issue body

Build scripts don't get cleaned up and so changes such as adding a variable to the "build_environment" do not propagate there after running `snapcraft` another time. snapcraft 4.0.4 4862 latest/candidate canonical✓ classic snapcraft clean --use-lxd cluster openstack-projects launch init Launching a container. Waiting for container to be ready Waiting for network to be ready... snap "core20" has no updates available Cleaning pull step (and all subsequent steps) for cluster Cleaning pull step (and all subsequent steps) for openstack-projects Cleaned 'openstack-projects', which makes the following parts out of date: 'cinder-config', 'glance-config', 'horizon-config', 'keystone-config', 'nova-config', and 'openstack-wrapper' Cleaning pull step (and all subsequent steps) for launch Cleaning pull step (and all subsequent steps) for init lxc exec snapcraft-microstack bash # looks like the files are still there stat parts/cluster/run/build.sh File: parts/cluster/run/build.sh Size: 2831 Blocks: 8 IO Block: 4096 regular file Device: 10fc80h/1113216d Inode: 12718852 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-06-09 14:30:58.492119801 +0000 Modify: 2020-06-09 14:30:58.484119758 +0000 Change: 2020-06-09 14:30:58.488119779 +0000 Birth: - snapcraft-microstack # stat parts/{cluster,openstack-projects,launch,init}/run/build.sh File: parts/cluster/run/build.sh Size: 2831 Blocks: 8 IO Block: 4096 regular file Device: 10fc80h/1113216d Inode: 12718852 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-06-09 14:30:58.492119801 +0000 Modify: 2020-06-09 14:30:58.484119758 +0000 Change: 2020-06-09 14:30:58.488119779 +0000 Birth: - File: parts/openstack-projects/run/build.sh Size: 3440 Blocks: 8 IO Block: 4096 regular file Device: 10fc80h/1113216d Inode: 6291651 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-06-09 14:26:26.790630890 +0000 Modify: 2020-06-09 14:26:26.786630868 +0000 Change: 2020-06-09 14:26:26.786630868 +0000 Birth: - File: parts/launch/run/build.sh Size: 2757 Blocks: 8 IO Block: 4096 regular file Device: 10fc80h/1113216d Inode: 13633939 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-06-09 14:31:43.496361459 +0000 Modify: 2020-06-09 14:31:43.492361438 +0000 Change: 2020-06-09 14:31:43.492361438 +0000 Birth: - File: parts/init/run/build.sh Size: 2739 Blocks: 8 IO Block: 4096 regular file Device: 10fc80h/1113216d Inode: 13501066 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-06-09 14:31:22.168247078 +0000 Modify: 2020-06-09 14:31:22.164247056 +0000 Change: 2020-06-09 14:31:22.164247056 +0000 Birth: -

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21.0
Staleness: 95
Complexity: 40
Confidence: 65
Support Request: 10
close stale 2020 report that snapcraft clean leaves parts/*/run/build.sh behind, so build_environment changes don't propagate. No maintainer response in ~5 years; snapcraft 4.x is EOL and the craft-parts-based 8.x clean removes whole part dirs.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 10
close stale Bug report stating snapcraft fails to remove build.sh scripts after part cleanup. Unanswered for over 5 years with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snapcraft 4.0.4 fails to remove build.sh scripts in the parts directory after running snapcraft clean, preventing build_environment changes from propagating on subsequent runs. The issue has been inactive for nearly five years with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 70
Support Request: 5
close stale Bug report stating snapcraft clean fails to remove build.sh scripts from part directories, preventing build_environment changes from propagating. Issue is 6 years old, references obsolete snapcraft v4.0.4, and has zero maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 75
Support Request: 15
close stale Reports that snapcraft clean leaves build.sh scripts behind, preventing environment variable updates. Open for 6 years with no maintainer response or labels.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1591056 (confidence 55%)

    Similar 4.x-era bug: snapcraft clean <part> didn't remove the bin/ directory; closed without resolution, indicating the same class of stale clean-related reports from the pre-craft-parts architecture.

Related issues

Issue Project State Summary Similarity
#1591056 snapcraft clean <part> doesn't remove the bin/ directory snapcraft (launchpad) closed The bug where snapcraft clean <part> leaves the bin/ directory behind was abandoned and closed without resolution. No fix was implemented or merged, likely due to prolonged inactivity.
74%
#1799925 snapcraft gives conflicting advice for cleaning parts snapcraft (launchpad) closed Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates.
72%
#1615060 snapcraft clean is incomplete snapcraft (launchpad) closed Reporting that snapcraft clean skips local .snap files was closed without comments or resolution, indicating the report was abandoned or left unresolved.
71%
#1815658 snapcraft leaks build-environment across parts snapcraft (launchpad) closed Closed without comments. Reports snapcraft build-environment variables leaking across parts. Likely abandoned due to inactivity, with no explicit resolution or fix noted.
71%