hostRules -> yarnrc.yml npmRegistries should have https prefix #26919
RGunning
started this conversation in
Suggest an Idea
Replies: 1 comment 3 replies
-
Do we know if all versions of Yarn using yarnrc.yml support https:// ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
At the moment, when constructing the yarnrc from the hostRules the https: prefix is stripped off the url
renovate/lib/modules/manager/npm/post-update/rules.ts
Lines 24 to 27 in a5d1b53
e.g.
However, logging in with
yarn config set --home npmRegistryServer "https://my-private-regsistry" && yarn config login
would add a .yarnrc.ymlThis leads to a different config on developers machines vs in renovate.
then in repository yarnrc files if you need to set npmAlwaysAuth
for it to work on a developer machine you need
but for renovate you need
and yarn get's conflicts if you try adding both with and without the https: prefix.
As Yarn adds the https: prefix it would make sense to modify
renovate/lib/modules/manager/npm/post-update/rules.ts
Lines 24 to 27 in a5d1b53
so that the https: prefix is left there too.
Beta Was this translation helpful? Give feedback.
All reactions