Skip to content

Build: skainet-io-iree-params declares js() target but depends on skainet-compile-hlo which does not #527

@michalharakal

Description

@michalharakal

Symptom

./gradlew allTests fails at configuration time on develop:

> Could not resolve project :skainet-compile:skainet-compile-hlo.
  Incompatible because this component declares attribute 'org.jetbrains.kotlin.platform.type'
  with value 'wasm' and the consumer needed 'js'

Also reproducible with ./gradlew :skainet-io:skainet-io-iree-params:compileKotlinJs.

Cause

skainet-io-iree-params/build.gradle.kts declares a js() target (inherited from the skainet-io-gguf template it was modelled on). Its commonMain depends on :skainet-compile:skainet-compile-hlo, which does not publish a JS target — only jvm / android / ios* / macos* / linux* / wasmJs / wasmWasi. There is no JS variant to satisfy the consumer, and Gradle cannot fall back to a different platform.

Fix

Drop js() from skainet-io-iree-params until its upstream dependency supports it. Wasm targets keep working because they use wasm platform attributes, which the producer does publish.

An earlier attempt at this fix (commit fdd378e7 on feature/hlo-iree-params-writer) was lost when PR #525 merged — only the first commit made it in. Re-applying it as a standalone PR.

Scope

Narrow, build-only. No public API change. No runtime change. Two-line edit to one build.gradle.kts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions