What Renovate type, platform and version are you using?
Hosted, Github
Describe the bug
When updating a dependency in our project which uses yarn link:... versions the yarn.lock file is updated in ways that we can't replicate locally with recent versions of the yarn CLI: renovate changes, fixes needed
Relevant debug logs
No issue indicated, but I'm guessing an old yarn version is being used? We include yarn in our engines block in package.json if that helps: I see now that it is using the yarn version from our package.json...
From https://app.renovatebot.com/dashboard#github/elastic/kibana/265079088
DEBUG: Writing updated .npmrc file to /tmp/renovate/gh/elastic/kibana/.npmrc(branch="renovate/@elasticcharts")
DEBUG: Generating yarn.lock for .(branch="renovate/@elasticcharts")
DEBUG: Spawning yarn install to create /tmp/renovate/gh/elastic/kibana/yarn.lock(branch="renovate/@elasticcharts")
DEBUG: Updating yarn.lock only - skipping node_modules(branch="renovate/@elasticcharts")
DEBUG: Using node constraint "12.19.1" from .nvmrc(branch="renovate/@elasticcharts")
DEBUG: Using docker to execute(branch="renovate/@elasticcharts")
DEBUG: Found npm version constraint - checking for a compatible docker.io/renovate/node image to use(branch="renovate/@elasticcharts")
{
"constraint": "12.19.1"
}
DEBUG: getLabels(https://index.docker.io, renovate/node, latest)(branch="renovate/@elasticcharts")
DEBUG: Missing versioning(branch="renovate/@elasticcharts")
DEBUG: Found compatible npm version(branch="renovate/@elasticcharts")
{
"constraint": "12.19.1",
"version": "12.19.1"
}
DEBUG: Resolved tag constraint(branch="renovate/@elasticcharts")
{
"image": "docker.io/renovate/node",
"tagConstraint": "12.19.1",
"tagVersioning": "npm",
"tag": "12.19.1"
}
DEBUG: Fetching Docker image: docker.io/renovate/node:12.19.1(branch="renovate/@elasticcharts")
DEBUG: Finished fetching Docker image(branch="renovate/@elasticcharts")
DEBUG: Executing command(branch="renovate/@elasticcharts")
{
"command": "docker run --rm --name=renovate_node --label=renovate_child -v \"/tmp/renovate/gh/elastic/kibana\":\"/tmp/renovate/gh/elastic/kibana\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/tmp/renovate/gh/elastic/kibana\" docker.io/renovate/node:12.19.1 bash -l -c \"npm i -g yarn@'^1.21.1' && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\""
}
DEBUG: exec completed(branch="renovate/@elasticcharts")
{
"cmd": "docker run --rm --name=renovate_node --label=renovate_child -v \"/tmp/renovate/gh/elastic/kibana\":\"/tmp/renovate/gh/elastic/kibana\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/tmp/renovate/gh/elastic/kibana\" docker.io/renovate/node:12.19.1 bash -l -c \"npm i -g yarn@'^1.21.1' && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\"",
"durationMs": 15226,
"stdout": "\n> yarn@1.22.10 preinstall /home/ubuntu/.npm-global/lib/node_modules/yarn\n> :; (node ./preinstall.js > /dev/null 2>&1 || true)\n\n/home/ubuntu/.npm-global/bin/yarn -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n/home/ubuntu/.npm-global/bin/yarnpkg -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n+ yarn@1.22.10\nadded 1 package in 1.631s\nyarn install v1.22.10\n[1/4] Resolving packages...\nsuccess Saved lockfile.\nDone in 9.14s.\n",
"stderr": "warning Resolution field \"trim@0.0.3\" is incompatible with requested version \"trim@0.0.1\"\nwarning Resolution field \"trim@0.0.3\" is incompatible with requested version \"trim@0.0.1\"\nwarning Resolution field \"@types/node@12.19.4\" is incompatible with requested version \"@types/node@8.10.54\"\nwarning Resolution field \"typescript@4.0.2\" is incompatible with requested version \"typescript@~3.7.2\"\nwarning Resolution field \"prismjs@1.22.0\" is incompatible with requested version \"prismjs@~1.16.0\"\nwarning Resolution field \"typescript@4.0.2\" is incompatible with requested version \"typescript@^3.2.2\"\nwarning Resolution field \"schema-utils@1.0.0\" is incompatible with requested version \"schema-utils@^0.3.0\"\nwarning Resolution field \"trim@0.0.3\" is incompatible with requested version \"trim@0.0.1\"\nwarning Resolution field \"typescript@4.0.2\" is incompatible with requested version \"typescript@^3.0.3\"\nwarning Resolution field \"typescript@4.0.2\" is incompatible with requested version \"typescript@^3.4.5\"\nwarning Resolution field \"trim@0.0.3\" is incompatible with requested version \"trim@0.0.1\"\nwarning Resolution field \"typescript@4.0.2\" is incompatible with requested version \"typescript@^3.3.3333\"\n"
}
DEBUG: yarn.lock needs updating(branch="renovate/@elasticcharts")
DEBUG: updateYarnOffline resolvedPaths(branch="renovate/@elasticcharts")
{
"resolvedPaths": []
}
DEBUG: Updated 1 lock files(branch="renovate/@elasticcharts")
{
"updatedArtifacts": [
"yarn.lock"
]
}
DEBUG: 2 file(s) to commit(branch="renovate/@elasticcharts")
To Reproduce
Just rebase elastic/kibana#84223 to see the yarn.lock changes.
Additional context
What Renovate type, platform and version are you using?
Hosted, Github
Describe the bug
When updating a dependency in our project which uses yarn
link:...versions the yarn.lock file is updated in ways that we can't replicate locally with recent versions of the yarn CLI: renovate changes, fixes neededRelevant debug logs
No issue indicated,
but I'm guessing an old yarn version is being used? We include yarn in ourI see now that it is using the yarn version from our package.json...enginesblock in package.json if that helps:From https://app.renovatebot.com/dashboard#github/elastic/kibana/265079088
To Reproduce
Just rebase elastic/kibana#84223 to see the yarn.lock changes.
Additional context