Crystal projects don't properly install and build due to "pull" copying lib/ and bin/ folders from host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
In Progress
|
Medium
|
George Dietrich |
Bug Description
The initial error i got was:
`Failed to copy 'libevent-
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_
```
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:/
tags: | added: craft-414 |
Changed in snapcraft: | |
assignee: | nobody → George Dietrich (blacksmoke16) |
This is a hard to solve generically. We will ask the crystal team to be able to output to a specific directory so things don't conflict. In parallel, we will look into providing filters for pull and build just like we do for stage and prime.