Releases: go-task/task
Releases · go-task/task
v3.40.0
If you like this project, consider spreading the word or sponsoring the project.
- Fixed output of some functions (e.g.
splitArgs
/splitLines
) not working in for loops (#1822, #1823 by @stawii). - Added a new
TASK_OFFLINE
environment variable to configure the--offline
flag and expose it as a special variable in the templating system (#1470, #1716 by @vmaerten and @pd93). - Fixed a bug where multiple remote includes caused all prompts to display without waiting for user input (#1832, #1833 by @vmaerten and @pd93).
- When using the "Remote Taskfiles" experiment, you can now include Taskfiles from Git repositories (#1652 by @vmaerten).
- Improved the error message when a dotenv file cannot be parsed (#1842 by @pbitty).
- Fix issue with directory when using the remote experiment (#1757 by @pbitty).
- Fixed an issue where a special variable was used in combination with a dotenv file (#1232, #1810 by @vmaerten).
- Refactor the way Task reads Taskfiles to improve readability (#1771 by @pbitty).
- Added a new option to ensure variable is within the list of values (#1827 by @vmaerten).
- Allow multiple prompts to be specified for a task (#1861, #1866 by @mfbmina).
- Added new template function:
numCPU
, which returns the number of logical CPUs usable (#1890, #1887 by @Amoghrd). - Fixed a bug where non-nil, empty dynamic variables are returned as an empty interface (#1903, #1904 by @pd93).
v3.39.2
v3.39.1
- Added Renovate configuration to automatically create PRs to keep dependencies up to date (#1783 by @vmaerten).
- Fixed a bug where the help was displayed twice (#1805, #1806 by @vmaerten).
- Fixed a bug where ZSH and PowerShell completions did not work when using the recommended method. (#1813, #1809 by @vmaerten and @shirayu)
- Fix variables not working properly for a
defer:
statement (#1803, #1814 by @vmaerten and @andreynering).
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).