I'm having issues with `yarn.lock` checks. I've j...
# javascript
e
I'm having issues with
yarn.lock
checks. I've just updated an npm dependency, run
gradle kotlinUpgradeYarnLock
, and committed + pushed the
yarn.lock
changes. Locally builds fine, on Jenkins it returns:
Copy code
00:02:51.294  FAILURE: Build failed with an exception.
00:02:51.294  
00:02:51.294  * What went wrong:
00:02:51.294  Execution failed for task ':kotlinStoreYarnLock'.
00:02:51.294  > yarn.lock was changed. Run the `kotlinUpgradeYarnLock` task to actualize yarn.lock file
Am I supposed to run
kotlinUpgradeYarnLock
on the Jenkins pipeline too, or should it work straight away? I don't recall this issue in the past.
I've run
kotlinUpgradeYarnLock
manually on the CI disk, and the
yarn.lock
file has remained exactly the same. But now it doesn't complain? Mmmh, I don't get it
h
Maybe different line endings?
e
@hfhbd the plugin seems to check line by line, so the line endings get discarded
a
kotlin 2.0.0 eeeh?
e
@andylamax no no, 1.9.22
a
I started getting the error when I jumped from 1.9.21 to 2.0.0. I never used 1.9.22. But since that jump, if have had to run kotlinUpdateYarnLock before any task involing kotlin/js for the task to execute successfully
608 Views