Skip to content

Fix smithy4s-protobuf Scala.js dependency resolution#1916

Draft
kubukoz wants to merge 1 commit intoseries/0.18from
fix/protobuf-js-deps
Draft

Fix smithy4s-protobuf Scala.js dependency resolution#1916
kubukoz wants to merge 1 commit intoseries/0.18from
fix/protobuf-js-deps

Conversation

@kubukoz
Copy link
Copy Markdown
Member

@kubukoz kubukoz commented Apr 13, 2026

Summary

Use %%% instead of %% for scalapb-runtime in the non-JVM protobuf dependency branch, so that the Scala.js artifact (scalapb-runtime_sjs1_3) is resolved instead of the JVM-only one (scalapb-runtime_3), which transitively pulls in protobuf-java and breaks the Scala.js linker.

This was introduced in #1821 when the dependency was changed from protobuf-runtime-scala to scalapb-runtime but the %%% operator was accidentally changed to %%.

Before (broken — 0.18.51)

The published POM for smithy4s-protobuf_sjs1_3 depends on:

  • scalapb-runtime_3 (JVM only)
  • protobuf-java (JVM only)
  • lenses_3 (JVM only)

After (fixed)

The published POM depends on:

  • scalapb-runtime_sjs1_3 (Scala.js compatible)

Fixes #1915

Use %%% instead of %% for scalapb-runtime in the non-JVM branch,
so that the Scala.js artifact (scalapb-runtime_sjs1_3) is resolved
instead of the JVM-only one (scalapb-runtime_3) which pulls in
protobuf-java and breaks the Scala.js linker.

Fixes #1915

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kubukoz
Copy link
Copy Markdown
Member Author

kubukoz commented Apr 13, 2026

something's up with BincompatCodegenIntegrationSpec...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant