Skip to content

Commit 4212678

Browse files
authored
Merge pull request #157 from Peefy/chore-bump-kcl-lib-to-0.10.6
chore: bump kcl go lib to 0.10.6
2 parents e4b1362 + 5af39d3 commit 4212678

File tree

42 files changed

+60
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+60
-65
lines changed

.github/workflows/dotnet-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ jobs:
176176
if: "startsWith(github.ref, 'refs/tags/')"
177177
run: |
178178
cd dotnet/KclLib/bin/Release
179-
dotnet nuget push KclLib.0.10.5.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
179+
dotnet nuget push KclLib.0.10.6.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcl-lang"
3-
version = "0.10.5"
3+
version = "0.10.6"
44
edition = "2021"
55
readme = "README.md"
66
documentation = "kcl-lang.io"
@@ -11,8 +11,8 @@ license = "Apache-2.0"
1111

1212
[dependencies]
1313
anyhow = "1"
14-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
15-
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
16-
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
17-
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
18-
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
14+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
15+
kclvm-evaluator = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
16+
kclvm-loader = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
17+
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
18+
kclvm-runtime = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ This way you'll be able to import the above dependency to use the SDK.
9595
<dependency>
9696
<groupId>com.kcl</groupId>
9797
<artifactId>kcl-lib</artifactId>
98-
<version>0.10.5-SNAPSHOT</version>
98+
<version>0.10.6-SNAPSHOT</version>
9999
</dependency>
100100
```
101101

@@ -197,7 +197,7 @@ This way you'll be able to import the above dependency to use the SDK.
197197
<dependency>
198198
<groupId>com.kcl</groupId>
199199
<artifactId>kcl-lib</artifactId>
200-
<version>0.10.5-SNAPSHOT</version>
200+
<version>0.10.6-SNAPSHOT</version>
201201
</dependency>
202202
```
203203

@@ -231,7 +231,7 @@ For CMake, you can use FetchContent to add KCL C++ Lib to your project.
231231
FetchContent_Declare(
232232
kcl-lib
233233
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
234-
GIT_TAG v0.10.5
234+
GIT_TAG v0.10.6
235235
SOURCE_SUBDIR cpp
236236
)
237237
FetchContent_MakeAvailable(kcl-lib)

c/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcl-lib-c"
3-
version = "0.10.5"
3+
version = "0.10.6"
44
edition = "2021"
55
publish = false
66

@@ -12,4 +12,4 @@ doc = false
1212
cbindgen = "0.26.0"
1313

1414
[dependencies]
15-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
15+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(kcl-lib VERSION 0.10.5 LANGUAGES CXX)
2+
project(kcl-lib VERSION 0.10.6 LANGUAGES CXX)
33

44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)

cpp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
name = "kcl-lib-cpp"
33
publish = false
44
edition = "2021"
5-
version = "0.10.5"
5+
version = "0.10.6"
66

77
[lib]
88
crate-type = ["staticlib"]
99

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

1515
[build-dependencies]
1616
cxx-build = "1.0"

cpp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can use FetchContent to add KCL C++ Lib to your project.
1212
FetchContent_Declare(
1313
kcl-lib
1414
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
15-
GIT_TAG v0.10.5
15+
GIT_TAG v0.10.6
1616
SOURCE_SUBDIR cpp
1717
)
1818
FetchContent_MakeAvailable(kcl-lib)
@@ -24,7 +24,7 @@ Or you can download the source code and add it to your project.
2424
mkdir third_party
2525
cd third_party
2626
git clone https://github.com/kcl-lang/lib.git
27-
git checkout v0.10.5
27+
git checkout v0.10.6
2828
```
2929

3030
```shell

dotnet/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ crate-type = ["cdylib"]
88
doc = false
99

1010
[dependencies]
11-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
11+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

dotnet/KclLib/KclLib.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PropertyGroup>
1212
<AssemblyName>KclLib</AssemblyName>
1313
<PackageId>KclLib</PackageId>
14-
<Version>0.10.5</Version>
14+
<Version>0.10.6</Version>
1515
<IncludeSymbols>true</IncludeSymbols>
1616
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1717
<RepositoryUrl>https://github.com/kcl-lang</RepositoryUrl>

dotnet/examples/exec-program/exec-program.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="KclLib" Version="0.10.5" />
12+
<PackageReference Include="KclLib" Version="0.10.6" />
1313
</ItemGroup>
1414

1515
</Project>

go/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/gofrs/flock"
1111
)
1212

13-
const KCLVM_VERSION = "v0.10.5"
13+
const KCLVM_VERSION = "v0.10.6"
1414

1515
func findPath(name string) string {
1616
if path, err := exec.LookPath(name); err == nil {
25.6 KB
Binary file not shown.
8.47 KB
Binary file not shown.
21.2 KB
Binary file not shown.
22.1 KB
Binary file not shown.
15 KB
Binary file not shown.
15 KB
Binary file not shown.

go/path/home.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package path
1616

1717
import (
1818
"os"
19+
"os/user"
1920
"runtime"
2021
)
2122

@@ -71,5 +72,10 @@ func HomeDir() string {
7172
// We've got nothing
7273
return ""
7374
}
74-
return os.Getenv("HOME")
75+
home := os.Getenv("HOME")
76+
if home != "" {
77+
return home
78+
}
79+
usr, _ := user.Current()
80+
return usr.HomeDir
7581
}

java/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
1818
once_cell = "1.19.0"
1919
lazy_static = "1.4.0"
2020

21-
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
22-
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
23-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
21+
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
22+
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
23+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
2626
<dependency>
2727
<groupId>com.kcl</groupId>
2828
<artifactId>kcl-lib</artifactId>
29-
<version>0.10.5-SNAPSHOT</version>
29+
<version>0.10.6-SNAPSHOT</version>
3030
</dependency>
3131
```
3232

java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.kcl</groupId>
77
<artifactId>kcl-lib</artifactId>
8-
<version>0.10.5-SNAPSHOT</version>
8+
<version>0.10.6-SNAPSHOT</version>
99
<name>KCL Arifact Library for Java</name>
1010
<description>
1111
KCL is an open-source constraint-based record and functional language mainly

java/src/main/java/com/kcl/ast/Module.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ public class Module {
1515
@JsonProperty("doc")
1616
private NodeRef<String> doc;
1717

18-
@JsonProperty("name")
19-
private String name;
20-
2118
@JsonProperty("body")
2219
private List<NodeRef<Stmt>> body;
2320

@@ -66,14 +63,6 @@ public void setDoc(NodeRef<String> doc) {
6663
this.doc = doc;
6764
}
6865

69-
public String getName() {
70-
return name;
71-
}
72-
73-
public void setName(String name) {
74-
this.name = name;
75-
}
76-
7766
public List<NodeRef<Stmt>> getBody() {
7867
return body;
7968
}

kotlin/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
1818
once_cell = "1.19.0"
1919
lazy_static = "1.4.0"
2020

21-
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
22-
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
23-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
21+
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
22+
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
23+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

kotlin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
2626
<dependency>
2727
<groupId>com.kcl</groupId>
2828
<artifactId>kcl-lib-kotlin</artifactId>
29-
<version>0.10.5-SNAPSHOT</version>
29+
<version>0.10.6-SNAPSHOT</version>
3030
</dependency>
3131
```
3232

kotlin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.kcl</groupId>
77
<artifactId>kcl-lib-kotlin</artifactId>
8-
<version>0.10.5-SNAPSHOT</version>
8+
<version>0.10.6-SNAPSHOT</version>
99
<name>KCL Arifact Library for Kotlin</name>
1010
<description>
1111
KCL is an open-source constraint-based record and functional language mainly

lua/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcl-lib-lua"
3-
version = "0.10.5"
3+
version = "0.10.6"
44
edition = "2021"
55
publish = false
66

@@ -16,4 +16,4 @@ mlua = { version = "0.9", features = [
1616
"module",
1717
"macros",
1818
], default-features = false, optional = true }
19-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
19+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }

lua/kcl_lib-0.10.5-1.rockspec renamed to lua/kcl_lib-0.10.6-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package = "kcl_lib"
2-
version = "0.10.5-1"
2+
version = "0.10.6-1"
33

44
source = {
55
url = "git+https://github.com/kcl-lang/kcl",

nodejs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "0.0.0"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
10+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
1111
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
1212
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
1313
napi-derive = "2.12.2"

nodejs/examples/exec-program/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"dist/"
1313
],
1414
"dependencies": {
15-
"kcl-lib": "0.10.5"
15+
"kcl-lib": "0.10.6"
1616
}
1717
}

nodejs/npm/darwin-arm64/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-darwin-arm64",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"darwin"
77
],

nodejs/npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-darwin-x64",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"darwin"
77
],

nodejs/npm/linux-arm64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-linux-arm64-gnu",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"linux"
77
],

nodejs/npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-linux-x64-gnu",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"linux"
77
],

nodejs/npm/win32-arm64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-win32-arm64-msvc",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"win32"
77
],

nodejs/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kcl-lang/lib-win32-x64-msvc",
33
"repository": "https://github.com/kcl-lang/lib",
4-
"version": "0.10.5",
4+
"version": "0.10.6",
55
"os": [
66
"win32"
77
],

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kcl-lib",
3-
"version": "0.10.5",
3+
"version": "0.10.6",
44
"repository": "https://github.com/kcl-lang/lib",
55
"license": "Apache-2.0",
66
"main": "index.js",

python/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "kcl-python-lib"
3-
version = "0.10.5"
3+
version = "0.10.6"
44
edition = "2021"
55

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

1010
[dependencies]
11-
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.5" }
11+
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.6" }
1212
pyo3 = "0.20.1"

spec/spec.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ service KclvmService {
106106
/// {
107107
/// "jsonrpc": "2.0",
108108
/// "result": {
109-
/// "version": "0.10.5",
109+
/// "version": "0.10.6",
110110
/// "checksum": "c020ab3eb4b9179219d6837a57f5d323",
111111
/// "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399",
112-
/// "version_info": "Version: 0.10.5-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
112+
/// "version_info": "Version: 0.10.6-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
113113
/// },
114114
/// "id": 1
115115
/// }

0 commit comments

Comments
 (0)