Open thp-canonical opened 8 months ago
@thp-canonical you could use the exclude config in spread.yaml to exclude any unwanted files (if their pattern is knowm), please check https://github.com/snapcore/spread/blob/master/README.md#including.
@thp-canonical you could use the exclude config in spread.yaml to exclude any unwanted files (if their pattern is know), please check https://github.com/snapcore/spread/blob/master/README.md#including.
cc @paul-rodriguez would that work for you?
If there's any stray UNIX domain sockets in the project directory, Spread fails to pack the project.
To reproduce this issue, create a socket (you can Ctrl+C the command as soon as it's started, we just want the side effect of creating a socket):
With this in place, trying to run
spread
fails (example project has a LXD backend, but this issue is most likely independent of backend):The error message:
As a workaround, we currently run
find . -type s -delete
before runningspread
to remove any UNIX domain sockets.GNU tar supports configurable warning messages using
--warning=
with:The
file-ignored
warning ignores:unknown_file_error()
insrc/create.c
in tar's source)It seems like one could add
--warning=no-file-ignored
to work around this issue:In my local tests, this fixed the issue and lets
spread
pack the local tree, ignoring any UNIX domain sockets.