andylamax
05/17/2025, 9:15 PM* What went wrong:
Execution failed for task ':kotlinStorePackageLock'.
> Lock file was changed. Run the `kotlinUpgradePackageLock` task to actualize lock file
Simply rerunning the action makes the build pass.
To mitigate this, I have tried running the task kotlinUpgradePackageLock
on CI, before running the build task, but even, that task itself fails sometimes. Anyone facing this issue? How do I solve this?Joffrey
05/17/2025, 9:38 PMeygraber
05/18/2025, 1:47 AM--rerun-tasks
. Very annoyingeygraber
05/18/2025, 1:49 AMandylamax
05/18/2025, 5:39 AM--rerun-tasks
flag for now. But I think it does defeat the purpose for package.lock
.
Can you remember what seemed to be causing the issue?eygraber
05/18/2025, 5:42 AMeygraber
05/18/2025, 5:44 AMandylamax
05/18/2025, 5:50 AMandylamax
05/18/2025, 7:17 AMkevlar-builder:
runs-on: 'macos-latest'
steps:
- id: 'step-0'
uses: 'actions/checkout@v3'
with:
submodules: 'true'
- id: 'step-1'
uses: 'actions/setup-java@v3'
with:
java-version: '18'
distribution: 'corretto'
- id: 'step-2'
name: 'Make ./gradlew executable'
working-directory: 'kevlar'
run: 'chmod +x ./gradlew'
- id: 'step-3'
name: 'Updating package.lock'
uses: 'gradle/gradle-build-action@v2'
with:
build-root-directory: './kevlar'
cache-disabled: 'true'
arguments: 'kotlinUpgradePackageLock'
- id: 'step-4'
name: 'Assuring package.lock is well updated'
uses: 'gradle/gradle-build-action@v2'
with:
build-root-directory: './kevlar'
cache-disabled: 'true'
arguments: 'kotlinUpgradePackageLock --rerun-tasks'
- id: 'step-5'
name: 'building kevlar-core'
uses: 'gradle/gradle-build-action@v2'
with:
build-root-directory: './kevlar'
cache-disabled: 'true'
arguments: ':kevlar-core:build'
😔