-
Notifications
You must be signed in to change notification settings - Fork 367
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
Can't set collection_name on env_var or local configuration #599
Comments
So much this!! |
Moreover, |
You put it mildly, this is a very annoying bug... |
I would not call this a bug since it's a deliberate design decision. Your code base is not compatible with the assumptions that invoke makes. This is already configurable using the |
Well, since english is not my primary language maybe I misunderstand something but the documentation write this:
If it is in the documentation and it's not working it's a bug... |
Sorry, wasn't aware of that! |
Are there plans to resolve this issue? |
From what I've seen in the codebase Invoke will only run certain configuration after tasks are loaded. This makes it inconvenient to have a project where invoke tasks live in other module than
tasks
.That is because to find the tasks module I have to run
inv -c [COLLECTION_NAME] [task_name]
. When I simply want to runinv [task_name]
.I could of course have a
~/.invoke.yaml
that looks like this:However this is impractical, since I'm working on a codebase where many people contribute, which the
tasks
module is already taken and I don't want to tell everyone to copy aninvoke.yaml
config file to their home directory. I'd like to make aninvoke.yaml
in my repo that would make invoke work customly "out of the box". In my opinion, Invoke should look for configuration files (invoke.(json|yml|yaml)
) automatically and recursively in the parent directories before tasks are loaded.I would be glad to try to hack something like that if it sounds good and no similar workarounds exists.
The text was updated successfully, but these errors were encountered: