-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
Have task attempt to fallback to a Taskfile.dist.yml if Taskfile.yml does not exist #498
Comments
Hi @geekygnr -- I think this could be achieved with a simple addition of the defaultTaskfiles = []string{"Taskfile.yml", "Taskfile.yaml", "Taskfile.dist.yml", "Taskfile.dist.yaml"} In this scenario you would have to include via directory as mentioned here: Lullabot/drainpipe#12 (comment) Would like to hear from @andreynering about this but I'd be happy to put up a PR |
Technically the problem could be solved today with using |
I think I like this idea. The implementation should also be simple as @tylermmorton mentioned.
@geekygnr Out of curiosity, do you know other tools that use this pattern other than phpunit? |
I see it most in php tools but that is also where I do most of my development. There are examples of it with phpunit and phpcs that can be seen in drupal core (https://github.com/drupal/drupal/tree/9.4.x/core), it is mentioned in symfony documentation (https://symfony.com/doc/2.2/cookbook/workflow/new_project_git.html). |
Just merged as #666 |
Awesome! 😈 |
We want to create a composer project containing tasks of everything that needs to be done for deployments, updates and maintenance.
A standard pattern with projects like this is to have a dist file that can be committed into code and used as a standard configuration until overridden.
An example of this is phpunit.xml.dist is looked for if phpunit.xml does not exist. phpunit.xml.dist would be committed into the repo while phpunit.xml would be a part of the gitignore to allow for environment specific settings.
The request is that task use a similar mechanism and look for a Taskfile.dist.yml when Taskfile.yml isn't present.
The text was updated successfully, but these errors were encountered: