Support updating Carton cpanfile.snapshot lockfile #31173
Closed
wwuck
started this conversation in
Suggest an Idea
Replies: 2 comments 1 reply
-
|
Hi, I decided to write up a guide to this type of things in the repo docs to hopefully answer your above questions and more. Please see https://github.com/renovatebot/renovate/pull/31243/files |
Beta Was this translation helpful? Give feedback.
1 reply
-
{
"$schema": "https://docs.renovatebot.com/renovate-global-schema.json",
"allowedCommands": [
"^PERL_CARTON_CPANFILE='.*' carton update"
],
"packageRules": [
{
"description": "Update cpanfile.snapshot after cpanfile update.",
"matchFileNames": [
"**/cpanfile"
],
"matchManagers": [
"cpanfile"
],
"postUpgradeTasks": {
"commands": [
"PERL_CARTON_CPANFILE='{{{packageFile}}}' carton update"
],
"fileFilters": [
"**/cpanfile.snapshot"
]
}
}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
I've recently started using Carton for managing perl cpanfile dependencies and I would like to submit a feature request for renovate to update the Carton cpanfile.snapshot lockfile. Renovate already supports cpanfile as a manager, so this would be an extension to use Carton for updating the associated lockfile.
Example:
With this
cpanfile:Running
carton installwill create thiscpanfile.snapshot:If renovate were to update the
cpanfileto this:Then running
carton updatein the same directory ascpanfileshows:# carton update Successfully installed TOML-0.97 (upgraded from 0.96) File::Slurp is up to date. (9999.32) 1 distribution installedand then the
cpanfile.snapshotbecomes:If the
cpanfileis not in the current directory forcarton updateto find, then the path tocpanfilecan be specified withPERL_CARTON_CPANFILEenvironment variable.Beta Was this translation helpful? Give feedback.
All reactions