elpa-mirror icon indicating copy to clipboard operation
elpa-mirror copied to clipboard

vagrant-tramp package produces a broken mirror.

Open Mihara opened this issue 3 years ago • 3 comments

Package vagrant-tramp invariably results in a broken mirror archive, because it includes a file bin/vagrant-tramp-ssh.

Notably, it's required for the package to even load properly, so it not being there causes a lot of interesting issues.

I'm not sure how could one rewrite elpamr-tar-command-exclude-patterns to prevent this for specific packages...

Mihara avatar Jan 23 '22 04:01 Mihara

(setq elpamr-tar-command-exclude-patterns '("*.elc"))

redguardtoo avatar Jan 23 '22 08:01 redguardtoo

That would be too broad from the other end, though. For example, pdf-tools builds a binary (epdfinfo) which also gets included in the tar. Along with all the object files, which would break on crossing from amd64 to arm, or between different distros.

I think some mechanism for setting this per-package is needed, such cases are rare, but they're tricky to debug.

Mihara avatar Jan 23 '22 08:01 Mihara

3e0fe0f can filter files&directories per package (Chen Bin)

redguardtoo avatar Jan 23 '22 12:01 redguardtoo