Fix for Composer Global Config #32800
Closed
zogot
started this conversation in
Suggest an Idea
Replies: 2 comments 3 replies
-
No to (4). It sound cause a massive and unwelcome change of behavior to all managers |
Beta Was this translation helpful? Give feedback.
3 replies
-
Turns out, at least for my case, and probably others, the ability to define 1 repository in which to search for all packages from, can just be done with So I'm going to close this, since this solves the main problem exactly, wether its from a config file from composer, or a parameter in the config file for renovate, doesn't matter to me. Here is the config I used, to just have this work:
|
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
-
Fix for Composer Global Config
Hey all. So I want to contribute towards renovate, specifically with the implementation of this discussion: #11980
So following the Contributing Guide, it says I should open a Discussion if there are doubts, or to get the maintainer(s) to agree to the proposed changes. Perhaps I'm missing something since it would be my first contribution.
Here are the changes that seem needed to solve this problem:
detect.ts
and matching spec to thelib/modules/manager/composer/
folderdetectGlobalConfig
similar torenovate/lib/modules/manager/npm/detect.ts
Line 8 in eb8c080
~/.composer/config.json
and extract the repositories key similar to the npmrc process.registryUrls
toGlobalManagerConfig
registryUrls
as mergeable here:renovate/lib/config/options/index.ts
Line 1177 in b818b6b
This is before doing any code work yet and just reading the code. Probably gonna pick up this weekend. So any advice or things I might be missing or if there are points its important for me to consider, it would all be appreciated.
Some other things of note.
GlobalManagerConfig
but instead have a type that only consists of the options withmergeable: true
? This way, if we add a new parameter to options that is mergeable, we don't also have to update theGlobalManagerConfig
.composer
will work natively.Beta Was this translation helpful? Give feedback.
All reactions