Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] kcl.mod file auto created when no root path is found #1788

Closed
zflat opened this issue Dec 12, 2024 · 1 comment · Fixed by kcl-lang/kpm#566
Closed

[cli] kcl.mod file auto created when no root path is found #1788

zflat opened this issue Dec 12, 2024 · 1 comment · Fixed by kcl-lang/kpm#566
Assignees
Labels
bug Something isn't working

Comments

@zflat
Copy link

zflat commented Dec 12, 2024

General Question

When I run the kcl run path/to/files command from a directory that does not contain a root path, kcl.mod and kcl.mod.lock files are generated in the directory specified on the command line path to run. However, I did not intend for the specified path to become a root path and it can be unclear why it is being treated as one. Why does the kcl.mod file get created automatically? Is there any way to change this default behavior so that I don't have files auto generated in places I don't expect and that will affect the results of running kcl code?

@Peefy Peefy added the bug Something isn't working label Dec 13, 2024
@zong-zhe
Copy link
Contributor

Hi @zflat 😄

We have confirmed that this is a bug in version 0.11.0-alpha.1, and we are fixing it. We are curious to know whether it also exists in other versions. If you are not in version 0.11.0-alpha.1, please give me your version number. To help me better capture this problem. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants