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]: Action scan misbehaviour? #6291

Open
stefreak opened this issue Jul 16, 2024 · 0 comments
Open

[Bug]: Action scan misbehaviour? #6291

stefreak opened this issue Jul 16, 2024 · 0 comments
Labels

Comments

@stefreak
Copy link
Member

stefreak commented Jul 16, 2024

Bug

Current behavior

  • This causes scan of entire repository:
    • Running an action declared in a subdirectory of the root project scans entire repository (garden run subdir -l4)
    • Running an action declared in a subdirectory of a subproject scans entire repository ((cd subproject; garden run subproj-subdir -l4))
    • Running an action declared at the root of a subproject scans entire repository ((cd subproject; garden run subproj -l4))
  • Also, it's possible to run actions that are declared in subprojects from the root project (e.g. garden run subproj)

Expected behavior

  • Only the subproject should be scanned in the following cases:
    • Running an action declared in a subdirectory of the root project (garden run subdir -l4)
    • Running an action declared in a subdirectory of a subproject ((cd subproject; garden run subproj-subdir -l4))
    • Running an action declared at the root of a subproject ((cd subproject; garden run subproj -l4))
  • It shouldn't be possible to run actions that are declared in subprojects from the root project (e.g. garden run subproj); Is it a feature or a bug though?

Reproducible example

scan-repro.tar.gz

Workaround

Unknown

Suggested solution(s)

Scan only necessary directories before actually running an action

Additional context

This behaviour also exists in older 0.13 versions, so it's not a recent regression.

Your environment

  • OS: MacOS

0.13.34

@stefreak stefreak added the bug label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant