Skip to content

Commit

Permalink
chore: bump kcl go lib to 0.10.6
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 24, 2024
1 parent e4b1362 commit 401cf65
Show file tree
Hide file tree
Showing 42 changed files with 60 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
run: |
cd dotnet/KclLib/bin/Release
dotnet nuget push KclLib.0.10.5.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push KclLib.0.10.6.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lang"
version = "0.10.5"
version = "0.10.6"
edition = "2021"
readme = "README.md"
documentation = "kcl-lang.io"
Expand All @@ -11,8 +11,8 @@ license = "Apache-2.0"

[dependencies]
anyhow = "1"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -197,7 +197,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -231,7 +231,7 @@ For CMake, you can use FetchContent to add KCL C++ Lib to your project.
FetchContent_Declare(
kcl-lib
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
GIT_TAG v0.10.5
GIT_TAG v0.10.6
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(kcl-lib)
Expand Down
4 changes: 2 additions & 2 deletions c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-c"
version = "0.10.5"
version = "0.10.6"
edition = "2021"
publish = false

Expand All @@ -12,4 +12,4 @@ doc = false
cbindgen = "0.26.0"

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(kcl-lib VERSION 0.10.5 LANGUAGES CXX)
project(kcl-lib VERSION 0.10.6 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
4 changes: 2 additions & 2 deletions cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "kcl-lib-cpp"
publish = false
edition = "2021"
version = "0.10.5"
version = "0.10.6"

[lib]
crate-type = ["staticlib"]

[dependencies]
anyhow = "1.0"
cxx = "1.0"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

[build-dependencies]
cxx-build = "1.0"
4 changes: 2 additions & 2 deletions cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can use FetchContent to add KCL C++ Lib to your project.
FetchContent_Declare(
kcl-lib
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
GIT_TAG v0.10.5
GIT_TAG v0.10.6
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(kcl-lib)
Expand All @@ -24,7 +24,7 @@ Or you can download the source code and add it to your project.
mkdir third_party
cd third_party
git clone https://github.com/kcl-lang/lib.git
git checkout v0.10.5
git checkout v0.10.6
```

```shell
Expand Down
2 changes: 1 addition & 1 deletion dotnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ crate-type = ["cdylib"]
doc = false

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion dotnet/KclLib/KclLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PropertyGroup>
<AssemblyName>KclLib</AssemblyName>
<PackageId>KclLib</PackageId>
<Version>0.10.5</Version>
<Version>0.10.6</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/kcl-lang</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/examples/exec-program/exec-program.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KclLib" Version="0.10.5" />
<PackageReference Include="KclLib" Version="0.10.6" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion go/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gofrs/flock"
)

const KCLVM_VERSION = "v0.10.5"
const KCLVM_VERSION = "v0.10.6"

func findPath(name string) string {
if path, err := exec.LookPath(name); err == nil {
Expand Down
Binary file modified go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib
Binary file not shown.
Binary file modified go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib
Binary file not shown.
Binary file modified go/lib/linux-amd64/libkclvm_cli_cdylib.so
Binary file not shown.
Binary file modified go/lib/linux-arm64/libkclvm_cli_cdylib.so
Binary file not shown.
Binary file modified go/lib/windows-amd64/kclvm_cli_cdylib.dll
Binary file not shown.
Binary file modified go/lib/windows-arm64/kclvm_cli_cdylib.dll
Binary file not shown.
8 changes: 7 additions & 1 deletion go/path/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package path

import (
"os"
"os/user"
"runtime"
)

Expand Down Expand Up @@ -71,5 +72,10 @@ func HomeDir() string {
// We've got nothing
return ""
}
return os.Getenv("HOME")
home := os.Getenv("HOME")
if home != "" {
return home
}
usr, _ := user.Current()
return usr.HomeDir
}
6 changes: 3 additions & 3 deletions java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
once_cell = "1.19.0"
lazy_static = "1.4.0"

kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
<name>KCL Arifact Library for Java</name>
<description>
KCL is an open-source constraint-based record and functional language mainly
Expand Down
3 changes: 0 additions & 3 deletions java/src/main/java/com/kcl/ast/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public class Module {
@JsonProperty("doc")
private NodeRef<String> doc;

@JsonProperty("name")
private String name;

@JsonProperty("body")
private List<NodeRef<Stmt>> body;

Expand Down
6 changes: 3 additions & 3 deletions kotlin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
once_cell = "1.19.0"
lazy_static = "1.4.0"

kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib-kotlin</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kcl</groupId>
<artifactId>kcl-lib-kotlin</artifactId>
<version>0.10.5-SNAPSHOT</version>
<version>0.10.6-SNAPSHOT</version>
<name>KCL Arifact Library for Kotlin</name>
<description>
KCL is an open-source constraint-based record and functional language mainly
Expand Down
4 changes: 2 additions & 2 deletions lua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-lua"
version = "0.10.5"
version = "0.10.6"
edition = "2021"
publish = false

Expand All @@ -16,4 +16,4 @@ mlua = { version = "0.9", features = [
"module",
"macros",
], default-features = false, optional = true }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion lua/kcl_lib-0.10.5-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package = "kcl_lib"
version = "0.10.5-1"
version = "0.10.6-1"

source = {
url = "git+https://github.com/kcl-lang/kcl",
Expand Down
2 changes: 1 addition & 1 deletion nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "0.0.0"
crate-type = ["cdylib"]

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
napi-derive = "2.12.2"
Expand Down
2 changes: 1 addition & 1 deletion nodejs/examples/exec-program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"dist/"
],
"dependencies": {
"kcl-lib": "0.10.5"
"kcl-lib": "0.10.6"
}
}
4 changes: 2 additions & 2 deletions nodejs/npm/darwin-arm64/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-arm64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-x64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-arm64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-x64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-arm64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-x64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.10.5",
"version": "0.10.6",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kcl-lib",
"version": "0.10.5",
"version": "0.10.6",
"repository": "https://github.com/kcl-lang/lib",
"license": "Apache-2.0",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "kcl-python-lib"
version = "0.10.5"
version = "0.10.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
pyo3 = "0.20.1"
4 changes: 2 additions & 2 deletions spec/spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ service KclvmService {
/// {
/// "jsonrpc": "2.0",
/// "result": {
/// "version": "0.10.5",
/// "version": "0.10.6",
/// "checksum": "c020ab3eb4b9179219d6837a57f5d323",
/// "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399",
/// "version_info": "Version: 0.10.5-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
/// "version_info": "Version: 0.10.6-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
/// },
/// "id": 1
/// }
Expand Down
4 changes: 2 additions & 2 deletions swift/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-c"
version = "0.10.5"
version = "0.10.6"
edition = "2021"
publish = false

Expand All @@ -12,4 +12,4 @@ doc = false
cbindgen = "0.26.0"

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
2 changes: 1 addition & 1 deletion wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kcl-lang/wasm-lib",
"version": "0.10.5",
"version": "0.10.6",
"description": "KCL WASM module",
"files": [
"kcl.wasm",
Expand Down
Loading

0 comments on commit 401cf65

Please sign in to comment.