Valentin Maerten
fa03d6e507
style: fix formatting
2026-04-20 22:06:01 +02:00
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
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
Valentin Maerten
8b6aca5722
feat(requires): support variable references in enum constraints ( #2678 )
2026-03-21 11:32:02 +01:00
Timothy Rule
f6720760b4
fix(includes): propagate silent mode from included Taskfiles to tasks ( #2640 )
2026-01-25 16:33:52 +01:00
Valentin Maerten
9bc1efbc47
feat: add conditional execution for tasks and commands ( #2564 )
2026-01-21 23:05:40 +01:00
Andrey Nering
9b99866224
feat: add --failfast and failtest: true to control dependencies ( #2525 )
2025-12-07 17:23:08 -03:00
Valentin Maerten
15b7e3c69a
refactor: VeryFastCompile for Task list ( #2053 )
2025-11-02 17:25:07 +01:00
Valentin Maerten
48039be12c
feat: improve fingerprint, run and output with wildcard ( #1808 )
2025-09-11 19:33:53 +02:00
Pete Davison
a60c2ec3f8
fix: sources brace expansion ( #2075 )
2025-04-19 11:51:31 +01:00
Artem Sedykh
6f0f38b8d9
feat: support for loops with generates ( #2151 )
2025-04-05 23:55:43 +01:00
Pete Davison
fb631902ce
refactor: run task through modernize tool ( #2088 )
2025-02-24 11:59:50 +00:00
Pete Davison
60c8ee0ce6
refactor: ast.Call should be in main task package ( #2084 )
2025-02-23 18:30:42 +00:00
Pete Davison
d6234af49a
feat: allow variable references in a matrix ( #2069 )
2025-02-23 18:13:56 +00:00
Pete Davison
daf39a04bf
feat: iterators ( #1798 )
...
* feat: update to github.com/elliotchance/orderedmap/v3
* refactor: better sort package
* feat: iterators
* chore: remove unnecessary code
2025-02-22 16:22:03 +00:00
Valentin Maerten
c995fe6d11
fix(checker): use only one checker at the same time to improve perf ( #2031 )
...
* fix(checker): use only one checker at the same time to improve performance
* refactor
* fix test
2025-02-08 17:34:04 +01:00
rohm1
24a830e384
fix: forward env to RunCommand when evaluating sh vars ( #1869 )
...
* forward env to RunCommand when evaluating sh vars. fixes #1742
* feat: added tests
* fix: test
---------
Co-authored-by: Pete Davison <pd93.uk@outlook.com >
2025-01-02 20:07:25 +00:00
Niklas Rousset
c1e14c461b
feat: make CHECKSUM and TIMESTAMP vars available in cmds commands ( #1872 )
2024-12-31 16:04:42 +01:00
Valentin Maerten
da40aabcc7
fix: task level vars are not ignored in requires ( #1960 )
...
Co-authored-by: MOKEKO <Anthurium.1605@gmail.com >
2024-12-30 19:11:27 +01:00
Pete Davison
2965841eb7
feat: use external package for ordered maps ( #1797 )
2024-12-30 17:54:36 +00:00
Pete Davison
148b090d8e
fix: bug where non-nil, empty dynamic variables are returned as an empty interface ( #1904 )
2024-11-04 13:30:39 +00:00
Piotr Stawarski
cb07189bab
Fix: Cannot use splitArgs and splitLines in for-loops ( #1823 )
...
* Update variables.go
Probably solves https://github.com/go-task/task/issues/1822
* add type casting
* reorder to look better
* add suport for []int functions (until, untilStep)
2024-09-20 18:05:19 +01:00
Pete Davison
e4b4d04abd
fix: matrix loops should be deterministic ( #1784 )
2024-09-02 22:43:54 +01:00
Pete Davison
281d259e6e
feat: loop over a matrix ( #1767 )
2024-09-02 20:29:00 +01:00
Andrey Nering
b259edeb65
feat(defer): expose EXIT_CODE special variable to defer: ( #1762 )
...
Co-authored-by: Dor Sahar <dorsahar@icloud.com >
2024-08-14 22:53:14 -03:00
Pete Davison
5e9851f42f
Update minimum go version ( #1758 )
...
* feat: update minimum version to 1.22
* refactor: use int range iterator
* refactor: loop variables
* refactor: replace slicesext.FirstNonZero with cmp.Or
* refactor: use slices.Concat instead of append
* fix: unused param
* fix: linting
2024-08-14 08:37:05 -05:00
Valentin Maerten
830b745112
feat(remote): global tempDir when the path is absolute ( #1661 )
...
* feat(remote): global tempDir is the path is absolute
* --wip-- [skip ci]
* fix lint
* rename checksum to fingerprint
* chore: Empty-Commit to trigger CI
* feat: add TASK_REMOTE_DIR
* handle relative path for TASK_REMOTE_DIR
* Remove unneedded extra blank lines
Co-authored-by: Andrey Nering <andrey@nering.com.br >
* add docs about TASK_REMOTE_DIR
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br >
2024-06-28 17:01:11 +01:00
Pete Davison
3aaa3223a0
fix: run once in shared dependencies ( #1655 )
...
* fix: run once in shared dependencies
* feat: add test
2024-06-28 16:50:02 +01:00
Pete Davison
630e58767b
feat: ability to resolve refs using templating syntax ( #1612 )
...
* feat: resolve references using templating syntax
* refactor: moved when references are resolved to one place
* fix: linter
* docs: update map variables doc
2024-04-24 19:47:24 +00:00
Pete Davison
e9448bd4be
fix: advanced import operates on including file instead of included file
2024-04-09 12:37:18 +01:00
Pete Davison
4774273c98
fix: merge conflict
2024-03-10 19:09:27 +00:00
Pete Davison
f06f48e225
feat: looping over dependencies ( #1541 )
...
* feat: support for loops in deps
* chore: tests
* docs: looping over deps
2024-03-10 17:21:50 +00:00
Pete Davison
08a888dc8a
feat: parse templates in collection-type variables ( #1526 )
...
* refactor: replacer
* feat: move traverser to deepcopy package
* feat: nested map variable templating
* refactor: ReplaceVar function
* feat: test cases
* fix: TraverseStringsFunc copy value instead of pointer
2024-03-10 17:11:07 +00:00
Pete Davison
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
Pete Davison
dbc120c970
feat: support refs in dependencies
2024-01-11 14:44:04 +00:00
Pete Davison
1f3fca50b3
feat: add ability to call task with variable by reference
2024-01-11 14:44:04 +00:00
Pete Davison
d87e7981fb
fix: don't report errors when fast compiling
2024-01-11 14:44:04 +00:00
Pete Davison
247c2586c2
refactor: taskfile/ast package ( #1450 )
...
* refactor: ast package
* feat: read -> taskfile
* refactor: taskfile.Taskfile -> taskfile.Read
* refactor: move merge function back into taskfile package
* refactor: rename taskfile.go to read.go
2023-12-29 20:32:03 +00:00
Pete Davison
2b67d05b9d
feat: remove v2 support ( #1447 )
...
* feat: remove v2 support
* docs: update v2 schema docs
2023-12-29 20:26:02 +00:00
Pete Davison
b592648d55
feat: support looping over map variables ( #1436 )
...
* feat: support looping over map variables
* feat: add .KEY variable
2023-12-21 15:43:56 +00:00
Pete Davison
7feceeae87
fix: handle errors when sh is used in Taskfiles with the any variables experiment enabled
2023-12-20 19:55:25 -06:00
Pete Davison
1eeb7d5cf9
fix: dynamic vars break with for because of fast-compiled tasks
2023-12-20 19:55:25 -06:00
Pete Davison
4a0414274f
feat: for supports variables and lists of any type
2023-12-20 19:55:25 -06:00
Pete Davison
5516ac1a00
feat: change Var.Value from string to an any type
2023-12-20 19:55:25 -06:00
Pete Davison
de09e675c1
refactor: rename Var.Static to Var.Value
2023-12-20 19:55:25 -06:00
Pete Davison
ec35d43677
feat: support negative globs ( #1324 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br >
2023-11-29 22:38:12 -03:00
Andrey Nering
adfb96b637
feat: add ability to set watch: true in Taskfile ( #1361 )
2023-10-07 18:06:43 -03:00
Pete Davison
d447cc3f19
chore: make sources paths relative
2023-07-24 22:05:40 -03:00