-
Notifications
You must be signed in to change notification settings - Fork 36
Can't enable prebuild using file URL #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Currently I restrict cpm from using prebuilds if the mirror is not CPAN cpm/lib/App/cpm/Worker/Installer.pm Line 29 in f437699
I think we should keep this by default, One thing I'm worried about is that |
Yep, that's the line I patched and returned 1 if the given URL starts with a i think ultimately the build cache needs to record where the tarball came from, whether it was CPAN or not. And might be some metadata of integrity, like SHA sum of the tarball. Then if the 02packages contained the sha sum of the tarball (needs an upgrade of the format) you're sure that the build cache was generated using the same archive. Building and bundling |
Completely agreed! |
I'm experimenting some combinations of using Carmel and cpm in development and production environments.
The goal is to manage the dependencies and snapshot with Carmel, then package the vendor/cache directory to install them with cpm on CI. To replicate what I would get on the CI, I'd like to install the modules the same way using cpm in development as well:
this is not as fast as I want with 200+ deps, because apparently prebuilt is not enabled when the mirror URL is
file://
. I needed to patchInstaller.pm
to allow thefile:///
URL to force enable the build cache.Can there be an option to enable this per URL basis, or rather, trust it if the URL is given as a CLI argument?
The text was updated successfully, but these errors were encountered: