andreynering
andreynering
TTask
Created by Explorer on 4/7/2025 in #help
dotenv merges in inverse order?
IIRC there was some discussion at the time on the priority order. We made a deliberate decision to implement this way. The idea is to follow the behavior of how .env files usually work. They do not override values that are already set on the ENV. In the same way, we loop over the list of .env files and only set the ENVs that were not previously set.
6 replies
TTask
Created by sedyh on 3/31/2025 in #help
Task is not tracking deleted generated files
@sedyh IIRC Task will just force the task to run if all generated files are deleted. It seems that yuo deleted one of the files but there is still one left there.
8 replies
TTask
Created by sedyh on 3/31/2025 in #help
Task is not tracking deleted generated files
@sedyh That should work. Do you confirm that it is not really working?
8 replies
TTask
Created by sedyh on 3/31/2025 in #help
Task and tracking dir modtime
Hi @sedyh, This happens because Task actually ignores directories and only cares about files.
4 replies
TTask
Created by sedyh on 3/31/2025 in #help
Run command for each source found by pattern without find.
9 replies
TTask
Created by sedyh on 3/31/2025 in #help
Run command for each source found by pattern without find.
9 replies
TTask
Created by sedyh on 3/31/2025 in #help
Run command for each source found by pattern without find.
Actually, it's sources with an s
9 replies
TTask
Created by sedyh on 3/31/2025 in #help
Run command for each source found by pattern without find.
Hi @sedyh, Have you tried for: source? https://taskfile.dev/reference/schema/#for
9 replies
TTask
Created by Nargit on 3/27/2025 in #help
Requires vars and CLI_ARGS cohabitation ?
Hi @Nargit. You may be interested in https://github.com/go-task/task/issues/2139
4 replies
TTask
Created by leaanthony on 2/28/2025 in #help
[Question] Best practice around "remote" taskfiles
Hi @leaanthony. Sorry for the wait, it was a holiday here in Brazil in the past days, so I was OOO. I don't have the full context of what you're trying to do at Wails, but from what I could understand, I'd say it'd be better to disallow remote Taskfiles or vendor them somehow so we avoid issues with synchronization. If the plugin version differs from remote, you could have issues.
3 replies
TTask
Created by Dnaron on 1/24/2025 in #help
How to reuse code in taskfile?
3. You might be interested into this proposal: https://github.com/go-task/task/issues/448
11 replies
TTask
Created by Dnaron on 1/24/2025 in #help
How to reuse code in taskfile?
2. Regarding this syntax error: it's just a matter of quoting the command: bash: '{{.TASK_EXE}} in-docker -- bash'
11 replies
TTask
Created by Dnaron on 1/24/2025 in #help
How to reuse code in taskfile?
1. You could try a shorter syntax for calling a different task if you want:
bash: { cmd: run-in-docker, vars: { DOCKER_COMMAND: 'docker compose exec -u nginx php bash' } }
bash: { cmd: run-in-docker, vars: { DOCKER_COMMAND: 'docker compose exec -u nginx php bash' } }
11 replies
TTask
Created by Dnaron on 1/24/2025 in #help
How to reuse code in taskfile?
Some thoughts:
11 replies
TTask
Created by Dnaron on 1/24/2025 in #help
How to reuse code in taskfile?
Hi @Dnaron, Do you an example to explain how you're trying to do it?
11 replies
TTask
Created by Rots on 11/28/2024 in #help
Convert string variable to integer
Hi @Rots, Yes, take a look at this page: https://go-task.github.io/slim-sprig/conversion.html
3 replies
TTask
Created by dNaszta on 11/19/2024 in #help
Watching golang source w net/http server
Hi @dNaszta, Task's watcher is not 100% polished, so it may fail in some scenarios. I suggest you to try dedicated tools like Air (https://github.com/air-verse/air). Both tools can be used together.
4 replies
TTask
Created by noel on 11/14/2024 in #help
Rerun task on dep build.
Hi @noel, Perhaps you could paste a small example Taskfile on what exactly you're trying to do? What is preventing that task to run? Is it fingerprinting (via sources:) or are you using run: :once?
8 replies
TTask
Created by ibragdzh on 11/7/2024 in #help
Parentheses in commands
Looks like there's a leading $ in front of that string. I think it shouldn't be there.
9 replies
TTask
Created by ibragdzh on 11/7/2024 in #help
Parentheses in commands
Try to change echo \"{{.MIGRATION_FILE}}\" > $$FILENAME; to echo {{shellQuote .MIGRATION_FILE}} > $$FILENAME;
9 replies