Releases: go-task/task
Releases · go-task/task
v3.39.0
- Added Env Precedence Experiment (#1038, #1633 by @vmaerten).
- Added a CI lint job to ensure that the docs are updated correctly (#1719 by @vmaerten).
- Updated minimum required Go version to 1.22 (#1758 by @pd93).
- Expose a new
EXIT_CODE
special variable ondefer:
when a command finishes with a non-zero exit code (#1484, #1762 by @dorimon-1 and @andreynering). - Expose a new
ALIAS
special variable, which will contain the alias used to call the current task. Falls back to the task name. (#1764 by @DanStory). - Fixed
TASK_REMOTE_DIR
environment variable not working when the path was absolute. (#1715 by @vmaerten). - Added an option to declare an included Taskfile as flattened (#1704 by @vmaerten).
- Added a new
--completion
flag to output completion scripts for various shells (#293, #1157 by @pd93).- This is now the preferred way to install completions.
- The completion scripts in the
completion
directory are now deprecated.
- Added the ability to loop over a matrix of values (#1766, #1767, #1784 by @pd93).
- Fixed a bug in fish completion where aliases were not displayed (#1781, #1782 by @vmaerten).
- Fixed panic when having a flattened included Taskfile that contains a
default
task (#1777, #1778 by @vmaerten). - Optimized file existence checks for remote Taskfiles (#1713 by @vmaerten).
v3.38.0
- Added
TASK_EXE
special variable (#1616, #1624 by @pd93 and @andreynering). - Some YAML parsing errors will now show in a more user friendly way (#1619 by @pd93).
- Prefixed outputs will now be colorized by default (#1572 by @AlexanderArvidsson)
- References are now generally available (no experiments required) (#1654 by @pd93).
- Templating functions can now be used in references (#1645, #1654 by @pd93).
- Added a new templating reference page to the documentation (#1614, #1653 by @pd93).
- If using the Map Variables experiment (1), references are available by prefixing a string with a
#
(#1654 by @pd93). - If using the Map Variables experiment (2), the
yaml
andjson
keys are no longer available (#1654 by @pd93). - Added a new
TASK_REMOTE_DIR
environment variable to configure where cached remote Taskfiles are stored (#1661 by @vmaerten). - Added a new
--clear-cache
flag to clear the cache of remote Taskfiles (#1639 by @vmaerten). - Improved the readability of cached remote Taskfile filenames (#1636 by @vmaerten).
- Starting releasing a binary for the
riscv64
architecture on Linux (#1699 by @mengzhuo). - Added
CLI_SILENT
andCLI_VERBOSE
variables (#1480, #1669 by @Vince-Smith). - Fixed a couple of bugs with the
prompt:
feature (#1657 by @pd93). - Fixed JSON Schema to disallow invalid properties (#1657 by @pd93).
- Fixed version checks not working as intended (#872, #1663 by @vmaerten).
- Fixed a bug where included tasks were run multiple times even if
run: once
was set (#852, #1655 by @pd93). - Fixed some bugs related to column formatting in the terminal (#1350, #1637, #1656 by @vmaerten).
v3.37.2
v3.37.1
v3.37.0
- Released the Any Variables experiment, but without support for maps (#1415, #1547 by @pd93).
- Refactored how Task reads, parses and merges Taskfiles using a DAG (#1563, #1607 by @pd93).
- Fix a bug which stopped tasks from using
stdin
as input (#1593, #1623 by @pd93). - Fix error when a file or directory in the project contained a special char like
&
,(
or)
(#1551, #1584 by @andreynering). - Added alias
q
for template functionshellQuote
(#1601, #1603 by @vergenzt) - Added support for
~
on ZSH completions (#1613 by @jwater7). - Added the ability to pass variables by reference using Go template syntax when the Map Variables experiment is enabled (#1612 by @pd93).
- Added support for environment variables in the templating engine in
includes
(#1610 by @vmaerten).
v3.36.0
- Added support for looping over dependencies (#1299, #1541 by @pd93).
- When using the "Remote Taskfiles" experiment, you are now able to use remote Taskfiles as your entrypoint.
includes
in remote Taskfiles will now also resolve correctly (#1347 by @pd93).- When using the "Any Variables" experiments, templating is now supported in collection-type variables (#1477, #1511, #1526 by @pd93).
- Fixed a bug where variables being passed to an included Taskfile were not available when defining global variables (#1503, #1533 by @pd93).
- Improved support to customized colors by allowing 8-bit colors and multiple ANSI attributes (#1576 by @pd93).
v3.35.1
v3.35.0
- Added support for wildcards in task names (#836, #1489 by @pd93).
- Added the ability to run Taskfiles via stdin (#655, #1483 by @pd93).
- Bumped minimum Go version to 1.21 (#1500 by @pd93).
- Fixed bug related to the
--list
flag (#1509, #1512 by @pd93, #1514, #1520 by @pd93). - Add mention on the documentation to the fact that the variable declaration order is respected (#1510 by @kirkrodrigues).
- Improved style guide docs (#1495 by @iwittkau).
- Removed duplicated entry for
requires
on the API docs (#1491 by @teatimeguest).
v3.34.1
v3.34.0
- Removed support for
version: 2
schemas. See the deprecation notice on our website (#1197, #1447 by @pd93). - Fixed a couple of issues in the JSON Schema + added a CI step to ensure it's correct (#1471, #1474, #1476 by @sirosen).
- Added Any Variables experiment proposal 2 (#1415, #1444 by @pd93).
- Updated the experiments and deprecations documentation format (#1445 by @pd93).
- Added new template function:
spew
, which can be used to print variables for debugging purposes (#1452 by @pd93). - Added new template function:
merge
, which can be used to merge any number of map variables (#1438, #1464 by @pd93). - Small change on the API when using as a library:
call.Direct
becamecall.Indirect
(#1459 by @pd93). - Refactored the public
read
andtaskfile
packages and introducedtaskfile/ast
(#1450 by @pd93). ast.IncludedTaskfiles
renamed toast.Includes
andorderedmap
package renamed toomap
plus some internal refactor work (#1456 by @pd93).- Fix zsh completion script to allow lowercase
taskfile
file names (#1482 by @xontab). - Improvements on how we check the Taskfile version (#1465 by @pd93).
- Added a new
ROOT_TASKFILE
special variable (#1468, #1469 by @pd93). - Fix experiment flags in
.env
when the--dir
or--taskfile
flags were used (#1478 by @pd93).