-
Notifications
You must be signed in to change notification settings - Fork 2.3k
How to omit "Stripping .npmrc file of lines with variables" #30961
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Azure DevOps Please tell us more about your question or problemContext We are using Renovate in our Azure DevOps project. Great bot, it works fine so far. const npmrc = `
@companys:registry=https://packages.somecompany.com/repository/some-registry
//packages.somecompany.com/repository/:_auth=${process.env.REGISTRY_AUTH_TOKEN};
`;
module.exports = {
npmrc: npmrc
...
}; Renovate is stripping lines from .npmrc files In sub directories, there are .npmrc files containing this configuration, too.
I am changing the Renovate configuration to: module.exports = {
// no npmrc
npmrcMerge: true
...
}; Renovate is detecting those .npmrc files, but using only those .npmrc files and removing the Renovate-npmrc-configuration does not work.
I assume this means the line Support question How can I get this setup working? Logs (if relevant)No response |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments · 9 replies
-
Can you share full logs please, to make it easier to debug? Because if |
Beta Was this translation helpful? Give feedback.
All reactions
-
That's odd, it could mean |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hopefully everyting is obfuscated.. thanks for your help! logs
|
Beta Was this translation helpful? Give feedback.
All reactions
-
ping @RahulGautamSingh |
Beta Was this translation helpful? Give feedback.
All reactions
-
Try |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
Try
npmrcMerge:false
and set thenpmrc
field in the renovate config (config.js or renovate.json). And to store the token value use one of the approaches mentioned here.