Commit b614341
Fix HybridQueryRanker commonMain compile for v0.5.0 publish (#479)
`MutableMap.putIfAbsent` is JVM-only and breaks
`:ampere-core:compileCommonMainKotlinMetadata`, which is what the
publish.yml workflow runs on tag push. The regular PR CI doesn't run
that task, so the issue slipped through when AMPR-156 (#476) merged and
only surfaced when the v0.5.0 tag triggered the publish workflow.
Swap to `getOrPut`, which is in commonMain and has the same effect
(insert if absent, leave existing alone) when the return value is
discarded inside `forEach`.
Verified with `./gradlew :ampere-core:compileCommonMainKotlinMetadata`
and the existing HybridQueryRankerTest.
Commit authored by Claude Opus 4.7 on Miley's behalf.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f33f977 commit b614341
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments