kcl-lang / cli

The KCL Command Line Interface (CLI).
https://kcl-lang.io
Apache License 2.0
19 stars 13 forks source link

surprising behavior: `kcl run` tries to create files #131

Closed ghostsquad closed 1 month ago

ghostsquad commented 1 month ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

kcl /dev/stdin << EOF
{ foo: "hello" }
EOF
failed to create file:  /dev/stdin/kcl.mod open /dev/stdin/kcl.mod: no such file or directory

2. What did you expect to see? (Required)

I did not expect for kcl.mod to try to be created.

3. What did you see instead (Required)

An error, that kcl.mod could not be created or opened.

4. What is your KCL components version? (Required)

kcl --version
kcl version 0.9.7
Peefy commented 1 month ago

Closed by https://github.com/kcl-lang/kpm/pull/442 and released in KCL CLI v0.9.8

ghostsquad commented 1 month ago

Yay! 🙌 Thanks