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

Do not search over all repos when an argument is provided #329

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

starbelly
Copy link
Member

When multiple repositories are found, we require a repository argument. However, this is at adds with the whoami command. Originally this was written to perform a whoami for each repository in state, and the bug was introduced when we switched to requiring a repo argument, such that if you have multiple repos defined, this would never work or would only partially work in the best case.

While this small PR is a quick fix, we may alternatively adjust the task to conditionally require the repo argument depending on the task, and in fact I'm leaning more that way :) However, I figured this PR could serve as an issue to discuss both approaches.

@starbelly starbelly merged commit 4d99ab7 into erlef:main Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants