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

bug: conflict kcl.mod file error reised, when compile *.k files from different package through kcl.yaml #572

Closed
zong-zhe opened this issue Jun 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@zong-zhe
Copy link
Contributor

zong-zhe commented Jun 13, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create three kcl packages by kpm init.

$ kpm init kcl1
$ kpm init kcl2
$ kpm init kcl3

edit the main.k in the three kcl pakcages.

# kcl1/main.k
k1 = 1
# kcl2/main.k
k2 = 2
# kcl3/main.k
k3 = 3

add the kcl.yaml under kcl1.

# kcl.yaml
kcl_cli_configs:
  file:
    - /xxx/kcl2/main.k # the`main.k` in kcl2.
    - /xxx/kcl3/main.k # the`main.k` in kcl3.
    - ./main.k

compile the kcl1 by kpm run.

$ cd kcl1
$ kpm run --kcl_args "-Y kcl.yaml"

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

k1: 1
k2: 2
k3: 3

3. What did you see instead (Required)

conflict kcl.mod file paths: {"/xxx/kcl2": "/xxx/kcl2", "/xxx/kcl3": "/xxx/kcl3", "/xxx/kcl1": "/xxx/kcl1"}

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

kcl -V
0.5.0-alpha.3
kpm --version
kpm version 0.2.4
@zong-zhe zong-zhe added the bug Something isn't working label Jun 13, 2023
@zong-zhe zong-zhe added this to the v0.5.0 Release milestone Jun 13, 2023
@zong-zhe zong-zhe self-assigned this Jun 13, 2023
@Peefy Peefy added the help wanted Extra attention is needed label Jun 13, 2023
@Peefy Peefy modified the milestones: v0.5.0 Release, v0.6.0 Release Jul 12, 2023
@Peefy Peefy closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants