← 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

A 2020 report says `snapcraft clean` leaves generated `parts/*/run/build.sh` files. Maintainers classified this as expected because every build run rewrites the script; documentation was promised.

Suggested action: close not a bug

Reason: Maintainer @~sergiusens explicitly said the behavior was expected because `build.sh` is overwritten on every build run, and later stated that it would be documented. Leaving the generated script therefore does not prevent updated `build_environment` content from propagating.

Evaluated by: mr-cal-bot

Impact: 22 Quick Win: 16 Complexity: 8 Confidence: 95 Actionability: 78

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
stealth/space-bunny-alpha
Impact: 22
Quick Win: 16
Complexity: 8
Confidence: 95
Actionability: 78
close not a bug A 2020 report says `snapcraft clean` leaves generated `parts/*/run/build.sh` files. Maintainers classified this as expected because every build run rewrites the script; documentation was promised.
stealth/space-bunny-alpha
Impact: 20
Quick Win: 15
Complexity: 15
Confidence: 90
Actionability: 88
close not a bug Snapcraft 4.0.4 left parts/*/run/build.sh after cleanup; maintainers said the files are regenerated on every build and declared the behavior expected.
stealth/space-bunny-alpha
Impact: 52
Quick Win: 25
Complexity: 43
Confidence: 82
Actionability: 85
needs triage Snapcraft 4.0.4 part cleanup leaves parts/*/run/build.sh behind, preventing build_environment updates from propagating; no maintainer triage is recorded.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21
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.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.