1
0
mirror of https://github.com/go-task/task.git synced 2026-04-26 20:02:40 +02:00
Commit Graph

400 Commits

Author SHA1 Message Date
Valentin Maerten 37d6b7155f rename: gitignore -> use_gitignore for clarity
Rename the Taskfile/task option from `gitignore` to `use_gitignore`
to avoid ambiguity (could be read as "ignore git" vs "use .gitignore").
Consistent with Biome's `useIgnoreFile` naming convention.
2026-04-20 22:06:01 +02:00
Valentin Maerten 43e28d9d0b refactor: remove rootDir param, auto-detect .git as boundary
Walk up from task dir to find .git instead of threading rootDir through
Globs, checkers, and itemsFromFor. Gitignore rules are discarded if no
.git is found, matching ripgrep's require_git behavior. This keeps the
Globs signature clean and makes the future .taskignore integration
straightforward (loaded at setup like .taskrc, separate boundary).
2026-04-20 22:05:50 +02:00
Valentin Maerten 78e057e9cb wip 2026-04-20 22:05:50 +02:00
Valentin Maerten 714ffdb1b5 refactor: replace go-git with sabhiram/go-gitignore for lighter dependency
go-git pulled ~30 transitive dependencies and recursively walked the
entire worktree on every Globs() call. Replace with sabhiram/go-gitignore
(zero dependencies) and a simple walk from task dir up to rootDir to
collect .gitignore files. Pass rootDir (Taskfile ROOT_DIR) through the
checker chain to bound the search scope.
2026-04-20 22:05:29 +02:00
Valentin Maerten 092663a2f2 feat: add gitignore option to exclude ignored files from sources/generates
When `gitignore: true` is set at the Taskfile or task level, files
matching .gitignore rules are automatically excluded from sources and
generates glob resolution. This prevents rebuilds triggered by changes
to files that are in .gitignore (build artifacts, generated files, etc.).

Uses go-git to load .gitignore patterns including nested .gitignore
files, .git/info/exclude, and global gitignore configuration.
2026-04-20 22:05:02 +02:00
Mateen Anjum 1b06da16f6 feat(templater): add absPath template function (#2788)
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2026-04-20 21:50:03 +02:00
Andrey Nering d61d92dfdf v3.50.0 2026-04-13 17:54:26 -03:00
Andrey Nering 219bf3e5a5 chore: add nolint annotations for gosec linter
Add //nolint:gosec annotations for intentional code patterns
that are safe in context (path traversal in release tool,
uintptr conversion for terminals, weak rand in tests,
TLS skip verify for user-configured insecure mode).

Assisted-by: Kimi-K2.5 via Crush <crush@charm.land>
2026-04-13 10:46:19 -03:00
Doug Richardson f2e32beabd fix: re-run task when generated files are missing with method: timestamp (#2716) 2026-04-11 21:42:50 -03:00
Valentin Maerten 6b436eda48 fix: Windows CI test failures and path normalization (#2670) 2026-03-28 10:39:13 +01:00
Valentin Maerten 8b6aca5722 feat(requires): support variable references in enum constraints (#2678) 2026-03-21 11:32:02 +01:00
Andrey Nering aa83651da2 v3.49.1 2026-03-08 17:01:25 -03:00
Andrey Nering a1b8985df0 v3.49.0 2026-03-07 19:20:58 -03:00
Timothy Rule 90bcbe9ba5 fix: address "taskfile not found" in some environments like docker (#2709) 2026-02-27 09:47:59 -03:00
Valentin Maerten 2ed77716be feat(config): add environment variable support for all taskrc options (#2607) 2026-02-18 18:58:13 +01:00
Andrey Nering 56b316a124 ci: fix lint 2026-02-17 15:43:13 -03:00
Andrey Nering fc5f6fa3aa fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
Timothy Rule f63a63fa6c fix: improve error message when searching for Taskfile. (#2682) 2026-02-15 14:56:35 +01:00
Andrey Nering 09e7247d05 v3.48.0 2026-01-26 09:26:23 -03:00
Valentin Maerten 026c899d90 feat: support self-signed certificates for remote taskfiles (#2537) 2026-01-25 18:51:30 +01:00
Timothy Rule f6720760b4 fix(includes): propagate silent mode from included Taskfiles to tasks (#2640) 2026-01-25 16:33:52 +01:00
Andrey Nering 12a26fa15e v3.47.0 2026-01-24 20:49:48 -03:00
Valentin Maerten 6dedcafd7d feat(vars): add interactive prompting for required variables (#2579) 2026-01-22 21:20:45 +01:00
Andrey Nering da7eb0c855 fix(shell): fix deprecation warning 2026-01-21 14:05:52 -03:00
Timothy Rule b9c1ab8eae fix: ensure no ansi sequences are printed for --color=false (#2584) 2026-01-18 09:18:52 -03:00
Andrey Nering 179bde1f37 v3.46.4 2025-12-24 18:57:17 -03:00
Andrey Nering 8dfafe507f v3.46.3 2025-12-19 15:50:51 -03:00
Andrey Nering fc378cfb92 v3.46.2 2025-12-18 17:55:19 -03:00
Valentin Maerten 28fee2c356 v3.46.1 2025-12-18 17:42:03 +01:00
Valentin Maerten f2385e625d v3.46.0 2025-12-18 17:29:29 +01:00
Valentin Maerten 6660afc8d2 feat: auto-detect color output in CI environments (#2569) 2025-12-18 08:40:37 +01:00
Valentin Maerten 4ec6c453bd feat: add remote.cache-dir taskrc option (#2572) 2025-12-18 08:32:11 +01:00
Valentin Maerten a40ddd4949 refactor: optimize fuzzy matching with lazy initialization (#2523) 2025-12-07 21:43:26 +01:00
Andrey Nering 9b99866224 feat: add --failfast and failtest: true to control dependencies (#2525) 2025-12-07 17:23:08 -03:00
Maciej Lech 72a349b0e9 feat: add --trusted-hosts CLI and remote.trusted-hosts config for remote tasks (#2491)
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2025-12-07 12:17:54 +01:00
Valentin Maerten 4ab1958df1 feat(summary): add vars, env, and requires display (#2524) 2025-11-29 11:14:20 +01:00
Andrey Nering 7901cce831 chore: run gofumpt 2025-11-22 18:09:50 -03:00
Timothy Rule 386dcbc1a0 fix: adjust run: when_changed to work correctly with imported tasks (#2511) 2025-11-22 17:17:13 -03:00
Andrey Nering 72e25a25fd v3.45.5 2025-11-11 17:13:39 -03:00
Andrey Nering ee99849b1d refactor: migrate to the official yaml package (#2434)
The old package is long archived, but the YAML org forked it and will
officially maintain it from now on.

* Old: https://github.com/go-yaml/yaml
* New: https://github.com/yaml/go-yaml
2025-11-11 19:49:37 +00:00
Andrey Nering 43074c20f2 refactor: improve code of group output 2025-11-11 14:37:16 -03:00
Timothy Rule 39c86992bd fix: address concurrent group output causing flaky tests (#2350) 2025-11-11 14:36:32 -03:00
Valentin Maerten 048d92709a v3.45.4 2025-09-17 17:05:20 +02:00
Valentin Maerten 4836d42828 fix: cache expiry in Taskrc was not working (#2423) 2025-09-16 19:35:12 +02:00
Pete Davison 17db402e4b v3.45.3 2025-09-15 12:59:29 +00:00
Pete Davison 209c88c341 v3.45.2 2025-09-15 12:40:54 +00:00
Pete Davison fbde227167 v3.45.1 2025-09-15 12:34:34 +00:00
Pete Davison bb4c254211 v3.45.0 2025-09-15 12:17:50 +00:00
Andrey Nering 43cb64e6cc fix: address panic if a config file is not available 2025-09-11 10:02:51 -03:00
Pete Davison 4ae3071845 feat: nested json (#2415)
* feat: nested json

* feat: remove up_to_date from json output when --no-status flag is set

* feat: restrict use of --nested with --json and --list/--list-all
2025-09-11 10:26:59 +01:00