A task runner / simpler Make alternative
Find a file
Valentin Maerten b8abadb4f0
🐛 fix(output): wrap gitlab sections at task level (#2806)
Previously the gitlab output wrapped each command individually, causing
two visible bugs in real GitLab pipelines:

- every section displayed a duration of 00:00, because start and end
  markers were emitted microseconds apart for instant commands
- the `task: [NAME] CMD` announcement lines were rendered outside the
  sections, because Logger.Errf bypassed the cmd-level wrapper

Fix by wrapping output at the task level via a new optional
[output.TaskWrapper] interface that GitLab implements. Task-scoped
writers are threaded via ctx so nested `task:` invocations produce
properly nested sections (GitLab supports this natively), and deps
running in parallel each get their own buffer with mutex-protected
flushes into the parent's buffer.

- `internal/output/output.go`: add TaskWrapper interface
- `internal/output/gitlab.go`: logic moved from WrapWriter to WrapTask;
  WrapWriter becomes passthrough; sync.Mutex around the buffer for
  concurrent flushes from parallel sub-task sections
- `task_output.go` (new): ctx plumbing + helpers kept out of task.go
- `task.go`: 7 lines of surgical edits — name the lambda's error
  return, wrap before the cmd loop, defer the closer with the final
  error, and swap the cmd announcement to `printCmdAnnouncement` which
  writes into the task-scoped stderr
2026-04-22 17:22:54 +02:00
.github feat: add permissions to actions (#2796) 2026-04-15 13:27:23 +01:00
.vscode fix: links to static files 2025-09-23 22:34:43 +00:00
args feat: cli args list (#2140) 2025-05-01 18:43:43 +01:00
bin Fix behavior of interrupt (SIGINT, SIGTERM) signals 2022-06-11 22:43:22 -03:00
cmd chore: add nolint annotations for gosec linter 2026-04-13 10:46:19 -03:00
completion fix(fish): honor GO_TASK_PROGNAME for experiments cache (#2730) 2026-03-21 11:37:51 +01:00
errors fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
experiments fix: return taskrc config even if there is an error (#2461) 2025-11-02 17:15:58 +01:00
internal 🐛 fix(output): wrap gitlab sections at task level (#2806) 2026-04-22 17:22:54 +02:00
taskfile ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
taskrc ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
testdata feat(templater): add absPath template function (#2788) 2026-04-20 21:50:03 +02:00
website ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
.editorconfig docs: migrate website to vitepress (#2359) 2025-08-12 18:09:19 +02:00
.gitattributes fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
.gitignore chore: add website/.netlify to gitignore 2026-01-25 14:26:53 +01:00
.golangci.yml chore(golangci-lint): exclude gosec G306 for file permissions 2026-04-13 10:46:19 -03:00
.goreleaser-nightly.yml fix: publish nightly draft and title (#2358) 2025-08-09 16:03:46 +02:00
.goreleaser-pr.yml feat(ci): add on-demand PR build workflow (#2578) 2026-01-14 19:41:50 +01:00
.goreleaser.yml feat: use GH_PAT for goreleaser (#2797) 2026-04-15 13:33:57 +00:00
.mockery.yaml feat: mockery v3 (#2110) 2025-04-19 12:55:22 +01:00
.prettierrc.yml Configure Prettier for Markdown formatting (#1112) 2023-04-15 16:13:29 -03:00
.taskrc.yml feat: recursive config search (#2166) 2025-04-19 12:20:33 +01:00
call.go refactor: ast.Call should be in main task package (#2084) 2025-02-23 18:30:42 +00:00
CHANGELOG.md chore: changelog for #2788 2026-04-20 21:53:50 +02:00
compiler.go fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
completion.go feat: completion command (#1157) 2024-09-02 19:21:53 +00:00
concurrency.go
executor.go ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
executor_test.go fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
formatter_test.go fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
go.mod chore(deps): update all non-major dependencies (#2786) 2026-04-13 10:48:30 -03:00
go.sum chore(deps): update all non-major dependencies (#2786) 2026-04-13 10:48:30 -03:00
hash.go Update minimum go version (#1758) 2024-08-14 08:37:05 -05:00
help.go feat: nested json (#2415) 2025-09-11 10:26:59 +01:00
init.go fix: a couple of fixes and improvements on task --init (#2433) 2025-12-07 20:29:51 +00:00
init_test.go chore: changelog and minor adjustments for #2018 2025-02-10 11:24:32 +00:00
install-task.sh fix(release): fix install script for armv5/6/7 (#2291) 2025-06-09 14:07:11 -03:00
LICENSE
precondition.go chore: allow using only github.com/go-task/task/v3/errors package (#1926) 2024-11-30 12:00:58 -03:00
README.md ✨ feat(website): add community sponsors section with Cloudsmith (#2748) 2026-03-17 22:00:48 +01:00
requires.go feat(requires): support variable references in enum constraints (#2678) 2026-03-21 11:32:02 +01:00
setup.go ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
setup_test.go ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
signals.go fix: handle SIGHUP in watcher (#2764) 2026-04-09 08:15:37 +02:00
signals_test.go Update minimum go version (#1758) 2024-08-14 08:37:05 -05:00
status.go refactor: ast.Call should be in main task package (#2084) 2025-02-23 18:30:42 +00:00
task.go 🐛 fix(output): wrap gitlab sections at task level (#2806) 2026-04-22 17:22:54 +02:00
task_output.go 🐛 fix(output): wrap gitlab sections at task level (#2806) 2026-04-22 17:22:54 +02:00
task_test.go feat(templater): add absPath template function (#2788) 2026-04-20 21:50:03 +02:00
Taskfile.yml chore(taskfile): add go.mod as a dependency of install 2026-01-24 18:49:38 -03:00
variables.go feat(requires): support variable references in enum constraints (#2678) 2026-03-21 11:32:02 +01:00
watch.go build(deps): upgrade xsync from v3 to v4 (#2554) 2025-12-07 12:28:31 +01:00
watch_test.go fix(watcher): fix some v3.43.x regressions (#2271) 2025-06-08 19:44:08 -03:00

Task: The Modern Task Runner

A fast, cross-platform build tool inspired by Make, designed for modern workflows.

Installation • Getting Started • Docs • Twitter • Bluesky • Mastodon • Discord

Gold Sponsors

Community Sponsors