-
Notifications
You must be signed in to change notification settings - Fork 36
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
cpm not checking version number in snapshot #198
Comments
The only workaround I've been able to think of is to put the version numbers for all the modules into the |
Any thoughts on this? I suppose I can generate a temporary Thx again for your hard work on |
Sorry for the late reply. This is an expected behavior. So, if you have
If you want to reproduce modules with the exact versions in snapshot, |
In the future, I may add such "reproducible" feature to cpm. |
Thx for the reply!
Sadly, I don't think that's going to be practical for us ... we've got 850+ modules to install, so having to redo them all every time we want to see if anything needs to upgrade (even as fast as Right now, I keep my distributions in a So, I think my solution will be that, instead of maintaining So I think that will work for now. I'll look forward to any future improvements for Thx again for all your hard work! |
@barefootcoder: @skaji:
I didn't realize this, and that might be a surprising behavior for the use case above. I wonder if there could be an option (off by default is fine) to stop falling back to CPAN and give an error? Carton has the option for this ( |
I had actually made a note to myself to look into Carmel, so thx for the reminder. Looking now, I see that Carmel does seem to address most of the issues that caused me to originally reject Carton as part of my solution. I'll have dig into the details to see if this is a viable alternative for my current approach (which I outline in the 4/28/21 comment above). It's turned out to have a few complications—almost entirely due to mismatches between distro versions and module versions—but seems to be workable so far. But I definitely think that simplifying the code on my side and relying on well-maintained CPAN code as much as possible will always be a win. Happy to discuss what features I would want to see in Carmel to make it fit better, but this is probably not the right venue. :-) Although I will say that, whatever the end solution ends up being, I definitely want to keep |
Perhaps I just have a fundamental misunderstanding of how the snapshot file is being used.
Let's say I have version 0.01 of module
Foo::Bar
installed. Using a cpanfile that just listsrequires 'Foo::Bar';
, but a snapshot file that listsFoo-Bar-0.02
, and givingcpm
the--cpanfile
switch, the--snapshot
switch, and the--resolver snapshot
switch, shouldcpm
installFoo::Bar
0.02? What I think is happening is thatcpm
seesFoo::Bar
in the cpanfile, says, "oh, that's installed already: we're all good," and never even checks the version number listed in the snapshot.So my question is:
Hopefully you have some insight for me to get me back on track to address this problem. Thx for all you do:
cpm
has become a major part of our Perl module management, so we really appreciate all your hard work on this module.The text was updated successfully, but these errors were encountered: