Skip to content

chore: bump version to 0.12.4 - #297

Merged
Peefy merged 6 commits into
mainfrom
chore/bump-version-0.12.4
Jul 26, 2026
Merged

chore: bump version to 0.12.4#297
Peefy merged 6 commits into
mainfrom
chore/bump-version-0.12.4

Conversation

@Peefy

@Peefy Peefy commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bump workspace version to 0.12.4 across all language SDK manifests
  • Refresh native libraries from the latest kcl-lang/kcl CI artifacts (commit 93f7a4fb, PR #2108)
  • Rename lua/kcl_lib-0.12.3-1.rockspec -> lua/kcl_lib-0.12.4-1.rockspec

Updated files

  • Cargo.toml (root) and all sub-crate Cargo.tomls
  • package.json for npm, all platform-specific nodejs/npm packages
  • pom.xml for Java/Kotlin
  • KclLib.csproj / exec-program.csproj for .NET
  • CMakeLists.txt and zig build.zig.zon
  • README files (cpp, java, kotlin, root)
  • GitHub workflow nupkg reference (KclLib.0.12.4.nupkg)
  • go/install/install.go (KCL_VERSION = "v0.12.4")

Native libraries refreshed

Platform File
darwin-amd64/arm64 libkcl.dylib
linux-amd64/arm64 libkcl.so
linux-musl-amd64/arm64 libkcl.a
windows-amd64/arm64 kcl.dll + kcl.lib

Windows-arm64 falls back to the windows CI artifact (no separate arm64 runner upstream).

Notes

The upstream kcl-lang/kcl repository was also bumped to 0.12.4 in its [workspace.package] version on branch fix/evaluator-assign-by-value (commit 850280a7). This PR aligns kcl-lang/lib with that change.

🤖 Generated with Claude Code

@Peefy

Peefy commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Pushed fix commit ed49f71 addressing CI failures:

  • Go / .NET / Java / Kotlin: removed trailing blank line from TestFormatCodeAPI expectations — the new formatter (PR #2108 dry-run formatting) no longer emits the extra newline
  • Node.js: FormatPathArgs now supplies dry_run: false to match the new kcl-api struct shape (PR #2108)
  • Rust cross-compile: same FormatPathArgs fix unblocks linux/macos/windows targets
  • Zig: migrated lib.linkLibC()lib.root_module.link_libc = true (Zig 0.17 API)
  • DCO: commit signed off

Verified locally:

  • go test -run TestFormatCodeAPI ./native/ -v → PASS
  • cargo build --release in nodejs/ → builds clean (warnings only)

🤖 Generated with Claude Code

Peefy and others added 3 commits July 26, 2026 15:18
- Bump workspace version to 0.12.4 across all language SDKs (Cargo.toml,
  package.json, pom.xml, .csproj, .rockspec, CMakeLists.txt, .zon)
- Update kcl-lang/kcl git dependency references to 0.12.4
- Rename lua/kcl_lib-0.12.3-1.rockspec -> lua/kcl_lib-0.12.4-1.rockspec
- Update github workflow nupkg reference
- Refresh native libraries from kcl-lang/kcl CI artifacts (commit 93f7a4fb)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
CI fixes after bumping to 0.12.4 with PR #2108 (dry-run formatting) and
PR #2110 (workspace version bump):

- Adapt test expectations: remove trailing blank line that the new
  formatter no longer emits (Go, .NET, Java, Kotlin)
- Provide `dry_run: false` in nodejs `FormatPathArgs` to match the new
  upstream kcl-api struct shape (added in PR #2108)
- Migrate zig build.zig from removed `lib.linkLibC()` method to
  `lib.root_module.link_libc = true` (Zig 0.17 API change)
- Refresh Cargo.lock commit pinning to bebe245b (the actual 0.12.4 tag)

Signed-off-by: Peefy <xpf6677@163.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
Zig 0.17 removed both `linkLibC` and `linkLibCpp` methods in favor of
setting `link_libc` / `link_libcpp` on the root_module. Apply the same
migration as the previous link_libc fix.

Signed-off-by: Peefy <xpf6677@163.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
@Peefy
Peefy force-pushed the chore/bump-version-0.12.4 branch from ed49f71 to 20721d7 Compare July 26, 2026 07:21
Peefy and others added 3 commits July 26, 2026 15:31
The upstream kcl-api crate (PR #2108) added a required `dry_run: bool`
field to `FormatPathArgs`. The cpp crate's `build_format_path_args` was
constructing this struct without it. Default to `false` to preserve the
non-dry-run behavior. The nodejs SDK already had this fix.

Signed-off-by: Peefy <xpf6677@163.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
…7 module API

- Add `dry_run` field to FormatPathArgs in spec.proto to match upstream kcl-api 0.12.4
- Migrate zig addLibraryPath/linkSystemLibrary/linkFramework to root_module API for Zig 0.17

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
Regenerated using protoc v33.1 and protoc-gen-go v1.36.10 to expose
the new dry_run field added to FormatPathArgs in upstream kcl-api 0.12.4.

Regenerated bindings:
- go/api/spec.pb.go
- python/kcl_lib/api/spec_pb2.py
- python/kcl_lib/api/spec_pb2.pyi
- java/src/main/java/com/kcl/api/Spec.java
- kotlin/src/main/java/com/kcl/api/Spec.java
- kotlin/src/main/kotlin/com/kcl/api/FormatPathArgsKt.kt
- dotnet/KclLib/api/Spec.cs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Peefy <xpf6677@163.com>
@Peefy
Peefy merged commit cc51870 into main Jul 26, 2026
63 of 64 checks passed
@Peefy
Peefy deleted the chore/bump-version-0.12.4 branch July 26, 2026 12:28
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