kcl-lang / lib

KCL Multiple Language Bindings including Rust, Go, Python, Java, Kotlin, .NET, Swift, Lua, Node.js, Zig, C, C++, WASM, etc.
https://www.kcl-lang.io/docs/reference/xlang-api/overview
Apache License 2.0
8 stars 10 forks source link

Write library by temporary file creation to avoid in-place modification executed library #74

Closed bozaro closed 4 months ago

bozaro commented 4 months ago

1. Does this PR affect any open issues?(Y/N) and add issue references:

Fix https://github.com/kcl-lang/lib/issues/73

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

An application using KCL does not crash after installing a different version of KCL.

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

See https://github.com/kcl-lang/lib/issues/73