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

kusion deps may produces wrong result when multiple stacks/projects has same prefix #335

Closed
amyXia1994 opened this issue May 6, 2023 · 0 comments · Fixed by #336
Closed
Labels
kind/bug Something isn't working

Comments

@amyXia1994
Copy link
Contributor

What happened?

  1. suppose there are several stacks:
appops/project/stack
appops/project/stackA
appops/project/stackAB
  1. when execute kusion deps --direct down --only stack --focus appops/project/stackAB/main.k and the result stack may be appops/project/stack or appops/project/stackA

What did you expect to happen?

the correct output: appops/project/stackAB

How can we reproduce it (as minimally and precisely as possible)?

see what happend above

Anything else we need to know?

No response

Kusion version

$ kusion version
releaseVersion: v0.7.4
gitInfo:
    latestTag: v0.7.4
    commit: 6b0e343ee729a18d52cc480eb16f40447bdc53ea
    treeState: clean
buildInfo:
    goVersion: go1.18.10
    GOOS: linux
    GOARCH: amd64
    numCPU: 2
    compiler: gc
    buildTime: "2023-03-06 06:33:54"
dependency:
    kclvmgoVersion: v0.4.5
    kclPluginVersion: v0.4.4

OS version

$ cat /etc/os-release cat: /etc/os-release: No such file or directory

$ sw_vers
ProductName: macOS
ProductVersion: 12.5.1
BuildVersion: 21G83

$ uname -a
Darwin M1-Mac.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64

Install tools

brew install kcl-lang/tap/kclvm brew install kusionstack/tap/kusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant