Skip to content

Commit

Permalink
fix: kusion deps check if focus path under certain stack (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyXia1994 committed May 9, 2023
1 parent 12b1ab1 commit aafd548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/deps/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func findDownStreams(workDir string, projects []*projectstack.Project, focusPath
isDownstream := false
// Iterate all the focus files and check if there appear some files under that stack, and delete those files from the focus paths
for f := range focusPaths {
if strings.HasPrefix(f, stackRel) {
if strings.HasPrefix(f, stackRel+string(filepath.Separator)) {
// Skip those focus paths that are under the stack directory
focusPaths.remove(f)
if !shouldIgnore.contains(f) {
Expand Down

0 comments on commit aafd548

Please sign in to comment.