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

Module loading error - edge already exists #1760

Closed
hanshardmeier opened this issue Nov 19, 2024 · 1 comment · Fixed by kcl-lang/kpm#549
Closed

Module loading error - edge already exists #1760

hanshardmeier opened this issue Nov 19, 2024 · 1 comment · Fixed by kcl-lang/kpm#549
Assignees
Labels
bug Something isn't working tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.

Comments

@hanshardmeier
Copy link

Bug Report

1. Minimal reproduce step (Required)

  1. Two empty modules within the same directory:

|- modules
| |- a
| | |- kcl.mod
| | |- main.k
| |- b
| | |- kcl.mod
| | |- main.k

  1. Content /modules/a/kcl.mod :
[package]
name = "a"
edition = "v0.10.0"
version = "0.0.1"

[dependencies]
b = { path = "../b" }
fluxcd-source-controller = "v1.3.2"
fluxcd-helm-controller = "v1.0.3"
  1. Content /modules/b/kcl.mod :
[package]
name = "b"
edition = "v0.10.0"
version = "0.0.1"

[dependencies]
fluxcd-source-controller = "v1.3.2"
  1. Ensure your $USER/.kcl/kpm/ directory is empty.

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

$ kcl run /modules/a/main.k
downloading 'kcl-lang/fluxcd-helm-controller:v1.0.3' from 'ghcr.io/kcl-lang/fluxcd-helm-controller:v1.0.3'
downloading 'kcl-lang/fluxcd-source-controller:v1.3.2' from 'ghcr.io/kcl-lang/fluxcd-source-controller:v1.3.2'
downloading 'kcl-lang/k8s:1.31.2' from 'ghcr.io/kcl-lang/k8s:1.31.2'
The_first_kcl_program: Hello World!

3. What did you see instead (Required)

$ kcl run /modules/a/main.k
downloading 'kcl-lang/fluxcd-helm-controller:v1.0.3' from 'ghcr.io/kcl-lang/fluxcd-helm-controller:v1.0.3'
downloading 'kcl-lang/fluxcd-source-controller:v1.3.2' from 'ghcr.io/kcl-lang/fluxcd-source-controller:v1.3.2'
downloading 'kcl-lang/k8s:1.31.2' from 'ghcr.io/kcl-lang/k8s:1.31.2'
edge already exists

--> kcl exited with error code 1

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

0.10.8-linux-amd64

@Peefy
Copy link
Contributor

Peefy commented Nov 19, 2024

cc @zong-zhe

@Peefy Peefy added the bug Something isn't working label Nov 20, 2024
@Peefy Peefy added the tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants