← Back to issue list

Crystal projects don't properly install and build due to "pull" copying lib/ and bin/ folders from host

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1936671
Type
issue
State
open
Author
~koffeinfrei
Labels
craft-414
Created
Updated
Closed

Current evaluation

Crystal snap builds fail because 'pull' copies host lib/ and bin/ into the multipass instance, causing stale shards builds. Workaround deletes those folders on pull. 5 years old, no maintainer response, unassessed.

Suggested action: needs triage

Reason: The report is a legitimate bug with a clear repro and workaround, but it has 0 comments, no assignee, and no maintainer assessment in ~4 years (last activity 1487 days ago), so it shows no sign of having been triaged. I could not confirm via tools whether snapcraft/plugins/v1/crystal.py still exists or still exhibits this pull-copy behavior, so closing as stale would be premature without verifying the v1 Crystal plugin is still present and affected.

Impact: 35 Quick Win: 19.25 Staleness: 88 Complexity: 45 Confidence: 52 Support Request: 15

Issue body

The initial error i got was: `Failed to copy 'libevent-2.1.so.7': no such file or directory.` This error occurs because the lib on the host system doesn't match the version on the snap's multipass instance. `shards install` doesn't update the lib/ and bin/ folder on the multipass instance, which leads to a stale build. My current workaround is to delete the two folders on "pull" to ensure that the shards are built on the multipass instance: ``` override-pull: | snapcraftctl pull rm -rf $SNAPCRAFT_PART_SRC/lib $SNAPCRAFT_PART_SRC/bin ``` I'm not sure if this issue is specific to Crystal, or if the behaviour is fundamentally problematic, and built files from the host shouldn't be copied over at all. Potentially `.gitignore` could be considered. If the issue is specific to Crystal we could add the delete command or something similar to https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/v1/crystal.py#L92.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 19.25
Staleness: 88
Complexity: 45
Confidence: 52
Support Request: 15
needs triage Crystal snap builds fail because 'pull' copies host lib/ and bin/ into the multipass instance, causing stale shards builds. Workaround deletes those folders on pull. 5 years old, no maintainer response, unassessed.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 80
Support Request: 20
close stale Crystal snap builds fail due to stale host lib/bin folders copied during pull. Untriaged, no maintainer response, over 4 years inactive.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 15
close stale Crystal plugin build fails due to snapcraft pull copying stale host lib/bin folders to the build environment. Issue is five years old, has no maintainer response, and references a deprecated v1 plugin architecture.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 80
Support Request: 25
close stale Crystal Snapcraft plugin fails to build due to host lib/bin files being copied during pull, causing version mismatches. Issue is 5 years old with no maintainer response and references deprecated v1 plugin code.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 65
Confidence: 85
Support Request: 20
close stale Snapcraft's pull step copies host lib/ and bin/ folders, causing stale builds for Crystal projects. The issue remains open with no comments or assignee. Requires a fix in the Crystal plugin or core snapcraft to prevent copying pre-built artifacts.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.