1
0
mirror of https://github.com/go-task/task.git synced 2024-12-04 10:24:45 +02:00
task/CHANGELOG.md

1034 lines
44 KiB
Markdown
Raw Permalink Normal View History

# Changelog
2024-11-12 12:20:15 +02:00
## Unreleased
- Fixed a security issue in `git-urls` by switching to the maintained fork `chainguard-dev/git-urls` (#1917 by
@AlekSi).
2024-11-15 22:42:15 +02:00
- Added missing `platforms` property to `cmds` that use `for` (#1915 by @dkarter).
2024-11-15 22:49:21 +02:00
- Added misspell linter to check for misspelled English words (#1883 by @christiandins).
2024-11-12 12:20:15 +02:00
2024-11-06 03:34:38 +02:00
## v3.40.0 - 2024-11-05
2024-09-20 19:08:54 +02:00
- Fixed output of some functions (e.g. `splitArgs`/`splitLines`) not working in
for loops (#1822, #1823 by @stawii).
2024-09-21 17:17:47 +02:00
- 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).
2024-09-24 19:23:18 +02:00
- Fixed a bug where multiple remote includes caused all prompts to display
without waiting for user input (#1832, #1833 by @vmaerten and @pd93).
2024-10-29 15:39:04 +02:00
- When using the
"[Remote Taskfiles](https://taskfile.dev/experiments/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).
2024-10-06 02:42:35 +02:00
- Fix issue with directory when using the remote experiment (#1757 by @pbitty).
2024-10-29 15:39:04 +02:00
- 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).
2024-11-04 15:32:47 +02:00
- 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).
2024-09-20 19:08:54 +02:00
2024-09-19 14:25:29 +02:00
## v3.39.2 - 2024-09-19
2024-09-19 14:24:35 +02:00
- Fix dynamic variables not working properly for a defer: statement (#1803,
#1818 by @vmaerten).
2024-09-19 03:22:56 +02:00
## v3.39.1 - 2024-09-18
2024-09-07 23:09:01 +02:00
- Added Renovate configuration to automatically create PRs to keep dependencies
up to date (#1783 by @vmaerten).
2024-09-14 11:17:21 +02:00
- Fixed a bug where the help was displayed twice (#1805, #1806 by @vmaerten).
2024-09-18 16:53:34 +02:00
- Fixed a bug where ZSH and PowerShell completions did not work when using the
recommended method. (#1813, #1809 by @vmaerten and @shirayu)
2024-09-19 03:20:51 +02:00
- Fix variables not working properly for a `defer:` statement (#1803, #1814 by
@vmaerten and @andreynering).
2024-09-07 23:09:01 +02:00
2024-09-07 22:05:46 +02:00
## v3.39.0 - 2024-09-07
2024-07-16 22:07:02 +02:00
2024-07-17 00:48:15 +02:00
- Added
[Env Precedence Experiment](https://taskfile.dev/experiments/env-precedence)
(#1038, #1633 by @vmaerten).
2024-07-16 22:07:02 +02:00
- Added a CI lint job to ensure that the docs are updated correctly (#1719 by
@vmaerten).
2024-08-14 15:39:56 +02:00
- Updated minimum required Go version to 1.22 (#1758 by @pd93).
- Expose a new `EXIT_CODE` special variable on `defer:` when a command finishes
with a non-zero exit code (#1484, #1762 by @dorimon-1 and @andreynering).
2024-08-25 02:57:09 +02:00
- 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).
2024-09-02 21:28:41 +02:00
- 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](https://taskfile.dev/installation/#setup-completions) to
2024-09-02 21:32:19 +02:00
output completion scripts for various shells (#293, #1157 by @pd93).
2024-09-02 21:28:41 +02:00
- This is now the preferred way to install completions.
- The completion scripts in the `completion` directory
[are now deprecated](https://taskfile.dev/deprecations/completion-scripts/).
2024-09-02 21:32:19 +02:00
- Added the ability to
[loop over a matrix of values](https://taskfile.dev/usage/#looping-over-a-matrix)
2024-09-02 23:45:19 +02:00
(#1766, #1767, #1784 by @pd93).
- Fixed a bug in fish completion where aliases were not displayed (#1781, #1782
by @vmaerten).
2024-09-07 22:00:00 +02:00
- 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).
2024-07-16 22:07:02 +02:00
2024-06-30 16:50:47 +02:00
## v3.38.0 - 2024-06-30
- Added `TASK_EXE` special variable (#1616, #1624 by @pd93 and @andreynering).
2024-05-16 12:16:49 +02:00
- Some YAML parsing errors will now show in a more user friendly way (#1619 by
2024-05-16 03:27:29 +02:00
@pd93).
2024-06-03 11:40:33 +02:00
- Prefixed outputs will now be colorized by default (#1572 by
@AlexanderArvidsson)
2024-05-16 17:35:21 +02:00
- [References](https://taskfile.dev/usage/#referencing-other-variables) are now
generally available (no experiments required) (#1654 by @pd93).
- Templating functions can now be used in references (#1645, #1654 by @pd93).
2024-05-16 12:16:49 +02:00
- Added a new
[templating reference page](https://taskfile.dev/reference/templating/) to the
documentation (#1614, #1653 by @pd93).
2024-05-16 17:35:21 +02:00
- If using the
[Map Variables experiment (1)](https://taskfile.dev/experiments/map-variables/?proposal=1),
references are available by
[prefixing a string with a `#`](https://taskfile.dev/experiments/map-variables/?proposal=1#references)
(#1654 by @pd93).
- If using the
[Map Variables experiment (2)](https://taskfile.dev/experiments/map-variables/?proposal=2),
the `yaml` and `json` keys are no longer available (#1654 by @pd93).
2024-06-28 18:02:56 +02:00
- Added a new `TASK_REMOTE_DIR` environment variable to configure where cached
remote Taskfiles are stored (#1661 by @vmaerten).
2024-06-28 18:44:53 +02:00
- Added a new `--clear-cache` flag to clear the cache of remote Taskfiles (#1639
by @vmaerten).
2024-06-28 18:09:40 +02:00
- Improved the readability of cached remote Taskfile filenames (#1636 by
@vmaerten).
2024-06-28 17:53:03 +02:00
- Starting releasing a binary for the `riscv64` architecture on Linux (#1699 by
@mengzhuo).
2024-06-28 18:16:58 +02:00
- Added `CLI_SILENT` and `CLI_VERBOSE` variables (#1480, #1669 by @Vince-Smith).
2024-05-16 17:35:21 +02:00
- Fixed a couple of bugs with the `prompt:` feature (#1657 by @pd93).
- Fixed JSON Schema to disallow invalid properties (#1657 by @pd93).
2024-05-20 23:02:30 +02:00
- Fixed version checks not working as intended (#872, #1663 by @vmaerten).
2024-06-28 17:53:03 +02:00
- Fixed a bug where included tasks were run multiple times even if `run: once`
was set (#852, #1655 by @pd93).
2024-06-28 19:04:02 +02:00
- Fixed some bugs related to column formatting in the terminal (#1350, #1637,
#1656 by @vmaerten).
2024-05-12 21:36:09 +02:00
## v3.37.2 - 2024-05-12
2024-05-12 21:27:39 +02:00
- Fixed a bug where an empty Taskfile would cause a panic (#1648 by @pd93).
2024-05-12 21:33:39 +02:00
- Fixed a bug where includes Taskfile variable were not being merged correctly
(#1643, #1649 by @pd93).
2024-05-12 21:27:39 +02:00
2024-05-09 16:22:47 +02:00
## v3.37.1 - 2024-05-09
- Fix bug where non-string values (numbers, bools) added to `env:` weren't been
correctly exported (#1640, #1641 by @vmaerten and @andreynering).
2024-05-09 02:32:16 +02:00
## v3.37.0 - 2024-05-08
2024-04-09 13:28:12 +02:00
- Released the
[Any Variables experiment](https://taskfile.dev/blog/any-variables), but
[_without support for maps_](https://github.com/go-task/task/issues/1415#issuecomment-2044756925)
(#1415, #1547 by @pd93).
2024-04-24 19:35:48 +02:00
- Refactored how Task reads, parses and merges Taskfiles using a DAG (#1563,
#1607 by @pd93).
2024-05-08 17:49:01 +02:00
- Fix a bug which stopped tasks from using `stdin` as input (#1593, #1623 by
2024-05-13 10:54:27 +02:00
@pd93).
- Fix error when a file or directory in the project contained a special char
like `&`, `(` or `)` (#1551, #1584 by @andreynering).
2024-04-24 03:49:12 +02:00
- Added alias `q` for template function `shellQuote` (#1601, #1603 by @vergenzt)
2024-04-24 03:58:56 +02:00
- Added support for `~` on ZSH completions (#1613 by @jwater7).
2024-04-24 21:50:03 +02:00
- Added the ability to pass variables by reference using Go template syntax when
the
[Map Variables experiment](https://taskfile.dev/experiments/map-variables/) is
enabled (#1612 by @pd93).
2024-04-29 23:32:42 +02:00
- Added support for environment variables in the templating engine in `includes`
(#1610 by @vmaerten).
2024-04-09 03:12:11 +02:00
## v3.36.0 - 2024-04-08
2024-03-10 19:17:53 +02:00
2024-03-10 19:24:35 +02:00
- Added support for
[looping over dependencies](https://taskfile.dev/usage/#looping-over-dependencies)
(#1299, #1541 by @pd93).
2024-03-25 21:20:39 +02:00
- When using the
"[Remote Taskfiles](https://taskfile.dev/experiments/remote-taskfiles/)"
experiment, you are now able to use
[remote Taskfiles as your entrypoint](https://taskfile.dev/experiments/remote-taskfiles/#root-remote-taskfiles).
- `includes` in remote Taskfiles will now also resolve correctly (#1347 by
@pd93).
2024-03-10 19:17:53 +02:00
- When using the
"[Any Variables](https://taskfile.dev/experiments/any-variables/)"
experiments, templating is now supported in collection-type variables (#1477,
#1511, #1526 by @pd93).
2024-03-10 19:30:52 +02:00
- Fixed a bug where variables being passed to an included Taskfile were not
available when defining global variables (#1503, #1533 by @pd93).
2024-04-09 02:58:35 +02:00
- Improved support to customized colors by allowing 8-bit colors and multiple
ANSI attributes (#1576 by @pd93).
2024-03-10 19:17:53 +02:00
2024-03-05 00:19:25 +02:00
## v3.35.1 - 2024-03-04
2024-03-04 00:47:20 +02:00
- Fixed a bug where the `TASKFILE_DIR` variable was sometimes incorrect (#1522,
#1523 by @pd93).
2024-03-04 13:39:21 +02:00
- Added a new `TASKFILE` special variable that holds the root Taskfile path
(#1523 by @pd93).
- Fixed various issues related to running a Taskfile from a subdirectory (#1529,
#1530 by @pd93).
2024-03-04 00:47:20 +02:00
2024-02-29 00:55:28 +02:00
## v3.35.0 - 2024-02-28
2024-02-20 02:04:01 +02:00
- Added support for
[wildcards in task names](https://taskfile.dev/usage/#wildcard-arguments)
(#836, #1489 by @pd93).
- Added the ability to
[run Taskfiles via stdin](https://taskfile.dev/usage/#reading-a-taskfile-from-stdin)
(#655, #1483 by @pd93).
- Bumped minimum Go version to 1.21 (#1500 by @pd93).
2024-02-29 00:46:30 +02:00
- Fixed bug related to the `--list` flag (#1509, #1512 by @pd93, #1514, #1520 by
@pd93).
2024-02-22 02:15:14 +02:00
- Add mention on the documentation to the fact that the variable declaration
order is respected (#1510 by @kirkrodrigues).
2024-02-22 02:19:09 +02:00
- Improved style guide docs (#1495 by @iwittkau).
2024-02-22 02:25:27 +02:00
- Removed duplicated entry for `requires` on the API docs (#1491 by
@teatimeguest).
2024-02-20 02:04:01 +02:00
2024-01-27 23:49:00 +02:00
## v3.34.1 - 2024-01-27
- Fixed prompt regression on
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles/)
(#1486, #1487 by @pd93).
2024-01-26 02:43:38 +02:00
## v3.34.0 - 2024-01-25
2023-12-29 22:42:15 +02:00
2024-01-11 17:12:11 +02:00
- Removed support for `version: 2` schemas. See the
2023-12-29 22:42:15 +02:00
[deprecation notice on our website](https://taskfile.dev/deprecations/version-2-schema)
2024-01-11 17:12:11 +02:00
(#1197, #1447 by @pd93).
2024-01-19 23:06:42 +02:00
- Fixed a couple of issues in the JSON Schema + added a CI step to ensure it's
correct (#1471, #1474, #1476 by @sirosen).
2024-01-11 17:12:11 +02:00
- Added
[Any Variables experiment proposal 2](https://taskfile.dev/experiments/any-variables/?proposal=2)
(#1415, #1444 by @pd93).
2023-12-29 22:42:15 +02:00
- Updated the experiments and deprecations documentation format (#1445 by
@pd93).
- Added new template function: `spew`, which can be used to print variables for
2024-01-11 17:12:11 +02:00
debugging purposes (#1452 by @pd93).
2024-01-11 18:02:52 +02:00
- Added new template function: `merge`, which can be used to merge any number of
map variables (#1438, #1464 by @pd93).
2024-01-11 17:12:11 +02:00
- Small change on the API when using as a library: `call.Direct` became
`call.Indirect` (#1459 by @pd93).
- Refactored the public `read` and `taskfile` packages and introduced
`taskfile/ast` (#1450 by @pd93).
- `ast.IncludedTaskfiles` renamed to `ast.Includes` and `orderedmap` package
renamed to `omap` plus some internal refactor work (#1456 by @pd93).
2024-01-26 02:01:26 +02:00
- Fix zsh completion script to allow lowercase `taskfile` file names (#1482 by
2024-01-26 01:59:19 +02:00
@xontab).
2024-01-26 02:07:33 +02:00
- Improvements on how we check the Taskfile version (#1465 by @pd93).
2024-01-26 02:12:37 +02:00
- Added a new `ROOT_TASKFILE` special variable (#1468, #1469 by @pd93).
2024-01-26 02:17:01 +02:00
- Fix experiment flags in `.env` when the `--dir` or `--taskfile` flags were
used (#1478 by @pd93).
2023-12-29 22:42:15 +02:00
2023-12-22 01:10:41 +02:00
## v3.33.1 - 2023-12-21
2023-12-21 17:51:34 +02:00
- Added support for looping over map variables with the
[Any Variables experiment](https://taskfile.dev/experiments/any-variables)
2023-12-21 17:51:34 +02:00
enabled (#1435, #1437 by @pd93).
2023-12-21 18:07:44 +02:00
- Fixed a bug where dynamic variables were causing errors during fast
compilation (#1435, #1437 by @pd93)
2023-12-21 17:51:34 +02:00
2023-12-21 04:20:06 +02:00
## v3.33.0 - 2023-12-20
2023-12-18 11:56:16 +02:00
2023-12-03 17:56:49 +02:00
- Added
2023-12-22 01:07:55 +02:00
[Any Variables experiment](https://taskfile.dev/experiments/any-variables)
2023-12-03 17:56:49 +02:00
(#1415, #1421 by @pd93).
- Updated Docusaurus to v3 (#1432 by @pd93).
2023-12-21 04:17:44 +02:00
- Added `aliases` to `--json` flag output (#1430, #1431 by @pd93).
- Added new `CLI_FORCE` special variable containing whether the `--force` or
`--force-all` flags were set (#1412, #1434 by @pd93).
2023-12-18 11:56:16 +02:00
2023-11-30 03:40:04 +02:00
## v3.32.0 - 2023-11-29
- Added ability to exclude some files from `sources:` by using `exclude:` (#225,
#1324 by @pd93 and @andreynering).
- The
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
now prefers remote files over cached ones by default (#1317, #1345 by @pd93).
- Added `--timeout` flag to the
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
(#1317, #1345 by @pd93).
- Fix bug where dynamic `vars:` and `env:` were being executed when they should
actually be skipped by `platforms:` (#1273, #1377 by @andreynering).
- Fix `schema.json` to make `silent` valid in `cmds` that use `for` (#1385,
#1386 by @iainvm).
- Add new `--no-status` flag to skip expensive status checks when running
`task --list --json` (#1348, #1368 by @amancevice).
2023-10-08 00:10:57 +02:00
## v3.31.0 - 2023-10-07
2023-10-07 23:55:43 +02:00
- Enabled the `--yes` flag for the
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
(#1317, #1344 by @pd93).
- Add ability to set `watch: true` in a task to automatically run it in watch
mode (#231, #1361 by @andreynering).
2023-10-07 23:41:35 +02:00
- Fixed a bug on the watch mode where paths that contained `.git` (like
`.github`), for example, were also being ignored (#1356 by @butuzov).
- Fixed a nil pointer error when running a Taskfile with no contents (#1341,
#1342 by @pd93).
- Added a new [exit code](https://taskfile.dev/api/#exit-codes) (107) for when a
Taskfile does not contain a schema version (#1342 by @pd93).
- Increased limit of maximum task calls from 100 to 1000 for now, as some people
have been reaching this limit organically now that we have loops. This check
exists to detect recursive calls, but will be removed in favor of a better
algorithm soon (#1321, #1332).
2023-10-07 23:59:20 +02:00
- Fixed templating on descriptions on `task --list` (#1343 by @blackjid).
- Fixed a bug where precondition errors were incorrectly being printed when task
execution was aborted (#1337, #1338 by @sylv-io).
2023-09-15 02:31:13 +02:00
## v3.30.1 - 2023-09-14
2023-09-14 22:57:12 +02:00
2023-09-15 02:31:13 +02:00
- Fixed a regression where some special variables weren't being set correctly
(#1331, #1334 by @pd93).
2023-09-14 22:57:12 +02:00
2023-09-14 03:04:01 +02:00
## v3.30.0 - 2023-09-13
- Prep work for Remote Taskfiles (#1316 by @pd93).
- Added the
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
as a draft (#1152, #1317 by @pd93).
- Improve performance of content checksumming on `sources:` by replacing md5 with
2023-09-14 02:43:40 +02:00
[XXH3](https://xxhash.com/) which is much faster. This is a soft breaking
change because checksums will be invalidated when upgrading to this release
(#1325 by @ReillyBrogan).
2023-08-26 23:45:44 +02:00
## v3.29.1 - 2023-08-26
- Update to Go 1.21 (bump minimum version to 1.20) (#1302 by @pd93)
- Fix a missing a line break on log when using `--watch` mode (#1285, #1297 by
@FilipSolich).
- Fix `defer` on JSON Schema (#1288 by @calvinmclean and @andreynering).
- Fix bug in usage of special variables like `{{.USER_WORKING_DIR}}` in
combination with `includes` (#1046, #1205, #1250, #1293, #1312, #1274 by
@andarto, #1309 by @andreynering).
- Fix bug on `--status` flag. Running this flag should not have side-effects: it
should not update the checksum on `.task`, only report its status (#1305,
#1307 by @visciang, #1313 by @andreynering).
2023-07-25 03:12:09 +02:00
## v3.28.0 - 2023-07-24
2023-07-08 16:44:57 +02:00
2023-06-15 18:13:23 +02:00
- Added the ability to
[loop over commands and tasks](https://taskfile.dev/usage/#looping-over-values)
using `for` (#82, #1220 by @pd93).
2023-07-08 16:44:57 +02:00
- Fixed variable propagation in multi-level includes (#778, #996, #1256 by
@hudclark).
2023-07-20 01:19:54 +02:00
- Fixed a bug where the `--exit-code` code flag was not returning the correct
exit code when calling commands indirectly (#1266, #1270 by @pd93).
2023-07-25 02:26:42 +02:00
- Fixed a `nil` panic when a dependency was commented out or left empty (#1263
by @neomantra).
2023-07-08 16:44:57 +02:00
2023-06-30 14:36:33 +02:00
## v3.27.1 - 2023-06-30
- Fix panic when a `.env` directory (not file) is present on current directory
(#1244, #1245 by @pd93).
2023-06-30 03:44:02 +02:00
## v3.27.0 - 2023-06-29
- Allow Taskfiles starting with lowercase characters (#947, #1221 by @pd93).
- e.g. `taskfile.yml`, `taskfile.yaml`, `taskfile.dist.yml` &
`taskfile.dist.yaml`
2023-06-30 03:15:09 +02:00
- Bug fixes were made to the
[npm installation method](https://taskfile.dev/installation/#npm). (#1190, by
@sounisi5011).
- Added the
[gentle force experiment](https://taskfile.dev/experiments/gentle-force) as a
draft (#1200, #1216 by @pd93).
2023-06-30 03:29:28 +02:00
- Added an `--experiments` flag to allow you to see which experiments are
enabled (#1242 by @pd93).
2023-06-30 03:20:10 +02:00
- Added ability to specify which variables are required in a task (#1203, #1204
by @benc-uk).
2023-06-11 03:33:17 +02:00
## v3.26.0 - 2023-06-10
2023-06-04 00:23:57 +02:00
2023-05-31 14:08:38 +02:00
- Only rewrite checksum files in `.task` if the checksum has changed (#1185,
#1194 by @deviantintegral).
- Added [experiments documentation](https://taskfile.dev/experiments) to the
website (#1198 by @pd93).
- Deprecated `version: 2` schema. This will be removed in the next major release
(#1197, #1198, #1199 by @pd93).
- Added a new `prompt:` prop to set a warning prompt to be shown before running
a potential dangerous task (#100, #1163 by @MaxCheetham,
2023-06-11 03:11:54 +02:00
[Documentation](https://taskfile.dev/usage/#warning-prompts)).
- Added support for single command task syntax. With this change, it's now
possible to declare just `cmd:` in a task, avoiding the more complex
`cmds: []` when you have only a single command for that task (#1130, #1131 by
@timdp).
2023-06-04 00:23:57 +02:00
2023-05-23 03:45:00 +02:00
## v3.25.0 - 2023-05-22
2023-04-15 23:24:15 +02:00
2023-05-23 03:18:41 +02:00
- Support `silent:` when calling another tasks (#680, #1142 by @danquah).
- Improve PowerShell completion script (#1168 by @trim21).
- Add more languages to the website menu and show translation progress
percentage (#1173 by @misitebao).
2023-04-15 23:24:15 +02:00
- Starting on this release, official binaries for FreeBSD will be available to
2023-05-23 03:18:41 +02:00
download (#1068 by @andreynering).
- Fix some errors being unintendedly suppressed (#1134 by @clintmod).
- Fix a nil pointer error when `version` is omitted from a Taskfile (#1148,
#1149 by @pd93).
2023-05-31 14:08:38 +02:00
- Fix duplicate error message when a task does not exists (#1141, #1144 by
@pd93).
2023-04-15 23:24:15 +02:00
2023-04-15 23:01:29 +02:00
## v3.24.0 - 2023-04-15
2023-04-15 21:52:46 +02:00
- Fix Fish shell completion for tasks with aliases (#1113 by @patricksjackson).
2023-04-15 21:44:20 +02:00
- The default branch was renamed from `master` to `main` (#1049, #1048 by
@pd93).
- Fix bug where "up-to-date" logs were not being omitted for silent tasks (#546,
#1107 by @danquah).
- Add `.hg` (Mercurial) to the list of ignored directories when using `--watch`
(#1098 by @misery).
2023-04-15 22:22:25 +02:00
- More improvements to the release tool (#1096 by @pd93).
2023-03-31 21:13:29 +02:00
- Enforce [gofumpt](https://github.com/mvdan/gofumpt) linter (#1099 by @pd93)
- Add `--sort` flag for use with `--list` and `--list-all` (#946, #1105 by
2023-04-15 22:22:25 +02:00
@pd93).
- Task now has [custom exit codes](https://taskfile.dev/api/#exit-codes)
depending on the error (#1114 by @pd93).
2023-03-27 02:42:46 +02:00
## v3.23.0 - 2023-03-26
Task now has an
[official extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=task.vscode-task)
contributed by @pd93! :tada: The extension is maintained in a
[new repository](https://github.com/go-task/vscode-task) under the `go-task`
2023-03-31 21:13:29 +02:00
organization. We're looking to gather feedback from the community so please give
it a go and let us know what you think via a
[discussion](https://github.com/go-task/vscode-task/discussions),
[issue](https://github.com/go-task/vscode-task/issues) or on our
[Discord](https://discord.gg/6TY36E39UK)!
> **NOTE:** The extension _requires_ v3.23.0 to be installed in order to work.
2023-03-26 17:32:20 +02:00
- The website was integrated with
[Crowdin](https://crowdin.com/project/taskfile) to allow the community to
contribute with translations! [Chinese](https://taskfile.dev/zh-Hans/) is the
first language available (#1057, #1058 by @misitebao).
- Added task location data to the `--json` flag output (#1056 by @pd93)
- Change the name of the file generated by `task --init` from `Taskfile.yaml` to
`Taskfile.yml` (#1062 by @misitebao).
- Added new `splitArgs` template function
(`{{splitArgs "foo bar 'foo bar baz'"}}`) to ensure string is split as
arguments (#1040, #1059 by @dhanusaputra).
2023-03-26 17:32:20 +02:00
- Fix the value of `{{.CHECKSUM}}` variable in status (#1076, #1080 by @pd93).
- Fixed deep copy implementation (#1072 by @pd93)
2023-03-26 17:48:13 +02:00
- Created a tool to assist with releases (#1086 by @pd93).
2023-03-10 20:35:56 +02:00
## v3.22.0 - 2023-03-10
2023-03-02 03:06:16 +02:00
- Add a brand new `--global` (`-g`) flag that will run a Taskfile from your
`$HOME` directory. This is useful to have automation that you can run from
anywhere in your system!
2023-03-26 17:32:20 +02:00
([Documentation](https://taskfile.dev/usage/#running-a-global-taskfile), #1029
by @andreynering).
2023-03-09 03:37:04 +02:00
- Add ability to set `error_only: true` on the `group` output mode. This will
instruct Task to only print a command output if it returned with a non-zero
2023-03-26 17:32:20 +02:00
exit code (#664, #1022 by @jaedle).
2023-03-06 14:47:33 +02:00
- Fixed bug where `.task/checksum` file was sometimes not being created when
2023-03-26 17:32:20 +02:00
task also declares a `status:` (#840, #1035 by @harelwa, #1037 by @pd93).
- Refactored and decoupled fingerprinting from the main Task executor (#1039 by
@pd93).
- Fixed deadlock issue when using `run: once` (#715, #1025 by
@theunrepentantgeek).
2023-03-02 03:06:16 +02:00
2023-02-23 03:12:48 +02:00
## v3.21.0 - 2023-02-22
2023-03-26 17:32:20 +02:00
- Added new `TASK_VERSION` special variable (#990, #1014 by @ja1code).
- Fixed a bug where tasks were sometimes incorrectly marked as internal (#1007
by @pd93).
- Update to Go 1.20 (bump minimum version to 1.19) (#1010 by @pd93)
- Added environment variable `FORCE_COLOR` support to force color output.
Useful for environments without TTY (#1003 by @automation-stack)
2023-01-14 22:34:15 +02:00
## v3.20.0 - 2023-01-14
2023-03-26 17:32:20 +02:00
- Improve behavior and performance of status checking when using the `timestamp`
mode (#976, #977 by @aminya).
- Performance optimizations were made for large Taskfiles (#982 by @pd93).
- Add ability to configure options for the
[`set`](https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html)
and
[`shopt`](https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html)
builtins (#908, #929 by @pd93,
[Documentation](http://taskfile.dev/usage/#set-and-shopt)).
- Add new `platforms:` attribute to `task` and `cmd`, so it's now possible to
choose in which platforms that given task or command will be run on. Possible
values are operating system (GOOS), architecture (GOARCH) or a combination of
the two. Example: `platforms: [linux]`, `platforms: [amd64]` or
`platforms: [linux/amd64]`. Other platforms will be skipped (#978, #980 by
@leaanthony).
2022-12-31 19:03:55 +02:00
## v3.19.1 - 2022-12-31
2022-12-17 15:35:30 +02:00
- Small bug fix: closing `Taskfile.yml` once we're done reading it (#963, #964
by @HeCorr).
- Fixes a bug in v2 that caused a panic when using a `Taskfile_{{OS}}.yml` file
2023-03-26 17:32:20 +02:00
(#961, #971 by @pd93).
- Fixed a bug where watch intervals set in the Taskfile were not being respected
(#969, #970 by @pd93)
2022-12-17 15:35:30 +02:00
- Add `--json` flag (alias `-j`) with the intent to improve support for code
editors and add room to other possible integrations. This is basic for now,
but we plan to add more info in the near future (#936 by @davidalpert, #764).
2022-12-17 15:35:30 +02:00
2022-12-06 03:28:15 +02:00
## v3.19.0 - 2022-12-05
- Installation via npm now supports [pnpm](https://pnpm.io/) as well
2023-03-26 17:32:20 +02:00
([go-task/go-npm#2](https://github.com/go-task/go-npm/issues/2),
[go-task/go-npm#3](https://github.com/go-task/go-npm/pull/3)).
- It's now possible to run Taskfiles from subdirectories! A new
`USER_WORKING_DIR` special variable was added to add even more flexibility for
monorepos (#289, #920).
- Add task-level `dotenv` support (#389, #904).
- It's now possible to use global level variables on `includes` (#942, #943).
- The website got a brand new
[translation to Chinese](https://task-zh.readthedocs.io/zh_CN/latest/) by
2023-03-26 17:32:20 +02:00
[@DeronW](https://github.com/DeronW). Thanks!
2022-12-06 03:28:15 +02:00
## v3.18.0 - 2022-11-12
2022-11-02 16:39:05 +02:00
2022-11-12 15:19:11 +02:00
- Show aliases on `task --list --silent` (`task --ls`). This means that aliases
2023-03-26 17:32:20 +02:00
will be completed by the completion scripts (#919).
- Tasks in the root Taskfile will now be displayed first in
`--list`/`--list-all` output (#806, #890).
2022-11-02 16:39:05 +02:00
- It's now possible to call a `default` task in an included Taskfile by using
just the namespace. For example: `docs:default` is now automatically aliased
to `docs` (#661, #815).
2022-11-02 16:39:05 +02:00
2022-12-06 03:28:15 +02:00
## v3.17.0 - 2022-10-14
2022-10-07 03:46:59 +02:00
- Add a "Did you mean ...?" suggestion when a task does not exits another one
2023-03-26 17:32:20 +02:00
with a similar name is found (#867, #880).
- Now YAML parse errors will print which Taskfile failed to parse (#885, #887).
- Add ability to set `aliases` for tasks and namespaces (#268, #340, #879).
- Improvements to Fish shell completion (#897).
- Added ability to set a different watch interval by setting `interval: '500ms'`
or using the `--interval=500ms` flag (#813, #865).
- Add colored output to `--list`, `--list-all` and `--summary` flags (#845,
#874).
2022-10-07 03:46:59 +02:00
- Fix unexpected behavior where `label:` was being shown instead of the task
2023-03-26 17:32:20 +02:00
name on `--list` (#603, #877).
2022-10-07 03:46:59 +02:00
2022-09-30 03:01:16 +02:00
## v3.16.0 - 2022-09-29
- Add `npm` as new installation method: `npm i -g @go-task/cli` (#870, #871,
[npm package](https://www.npmjs.com/package/@go-task/cli)).
- Add support to marking tasks and includes as internal, which will hide them
2023-03-26 17:32:20 +02:00
from `--list` and `--list-all` (#818).
## v3.15.2 - 2022-09-08
2022-09-09 02:21:39 +02:00
- Fix error when using variable in `env:` introduced in the previous release
2023-03-26 17:32:20 +02:00
(#858, #866).
- Fix handling of `CLI_ARGS` (`--`) in Bash completion (#863).
2022-09-09 02:21:39 +02:00
- On zsh completion, add ability to replace `--list-all` with `--list` as
2023-03-26 17:32:20 +02:00
already possible on the Bash completion (#861).
2022-09-09 02:21:39 +02:00
2022-09-03 23:21:40 +02:00
## v3.15.0 - 2022-09-03
2022-08-15 14:55:11 +02:00
- Add new special variables `ROOT_DIR` and `TASKFILE_DIR`. This was a highly
2023-03-26 17:32:20 +02:00
requested feature (#215, #857,
[Documentation](https://taskfile.dev/api/#special-variables)).
- Follow symlinks on `sources` (#826, #831).
- Improvements and fixes to Bash completion (#835, #844).
2022-08-15 14:55:11 +02:00
2022-08-04 03:08:17 +02:00
## v3.14.1 - 2022-08-03
- Always resolve relative include paths relative to the including Taskfile
2023-03-26 17:32:20 +02:00
(#822, #823).
- Fix ZSH and PowerShell completions to consider all tasks instead of just the
2023-03-26 17:32:20 +02:00
public ones (those with descriptions) (#803).
2022-07-08 20:19:32 +02:00
## v3.14.0 - 2022-07-08
- Add ability to override the `.task` directory location with the
`TASK_TEMP_DIR` environment variable.
2023-03-26 17:32:20 +02:00
- Allow to override Task colors using environment variables: `TASK_COLOR_RESET`,
`TASK_COLOR_BLUE`, `TASK_COLOR_GREEN`, `TASK_COLOR_CYAN`, `TASK_COLOR_YELLOW`,
`TASK_COLOR_MAGENTA` and `TASK_COLOR_RED` (#568, #792).
- Fixed bug when using the `output: group` mode where STDOUT and STDERR were
2023-03-26 17:32:20 +02:00
being print in separated blocks instead of in the right order (#779).
- Starting on this release, ARM architecture binaries are been released to Snap
2023-03-26 17:32:20 +02:00
as well (#795).
- i386 binaries won't be available anymore on Snap because Ubuntu removed the
support for this architecture.
- Upgrade mvdan.cc/sh, which fixes a bug with associative arrays (#785,
[mvdan/sh#884](https://github.com/mvdan/sh/issues/884),
[mvdan/sh#893](https://github.com/mvdan/sh/pull/893)).
2022-06-14 02:08:26 +02:00
## v3.13.0 - 2022-06-13
2023-03-26 17:32:20 +02:00
- Added `-n` as an alias to `--dry` (#776, #777).
- Fix behavior of interrupt (SIGINT, SIGTERM) signals. Task will now give time
2023-03-26 17:32:20 +02:00
for the processes running to do cleanup work (#458, #479, #728, #769).
- Add new `--exit-code` (`-x`) flag that will pass-through the exit form the
2023-03-26 17:32:20 +02:00
command being ran (#755).
2022-05-10 23:00:45 +02:00
## v3.12.1 - 2022-05-10
- Fixed bug where, on Windows, variables were ending with `\r` because we were
2023-03-26 17:32:20 +02:00
only removing the final `\n` but not `\r\n` (#717).
2022-04-01 02:44:59 +02:00
## v3.12.0 - 2022-03-31
2022-03-19 23:41:03 +02:00
2022-04-01 02:37:06 +02:00
- The `--list` and `--list-all` flags can now be combined with the `--silent`
2023-03-26 17:32:20 +02:00
flag to print the task names only, without their description (#691).
- Added support for multi-level inclusion of Taskfiles. This means that included
Taskfiles can also include other Taskfiles. Before this was limited to one
level (#390, #623, #656).
- Add ability to specify vars when including a Taskfile.
[Check out the documentation](https://taskfile.dev/#/usage?id=vars-of-included-taskfiles)
for more information (#677).
2022-03-19 23:41:03 +02:00
2022-04-01 02:44:59 +02:00
## v3.11.0 - 2022-02-19
2022-02-20 00:31:27 +02:00
- Task now supports printing begin and end messages when using the `group`
output mode, useful for grouping tasks in CI systems.
[Check out the documentation](http://taskfile.dev/#/usage?id=output-syntax)
for more information (#647, #651).
2023-03-26 17:32:20 +02:00
- Add `Taskfile.dist.yml` and `Taskfile.dist.yaml` to the supported file name
list.
[Check out the documentation](https://taskfile.dev/#/usage?id=supported-file-names)
for more information (#498, #666).
2022-01-04 23:19:48 +02:00
## v3.10.0 - 2022-01-04
2021-10-30 16:15:56 +02:00
- A new `--list-all` (alias `-a`) flag is now available. It's similar to the
2023-03-26 17:32:20 +02:00
exiting `--list` (`-l`) but prints all tasks, even those without a description
(#383, #401).
- It's now possible to schedule cleanup commands to run once a task finishes
with the `defer:` keyword
2023-03-26 17:32:20 +02:00
([Documentation](https://taskfile.dev/#/usage?id=doing-task-cleanup-with-defer),
#475, #626).
- Remove long deprecated and undocumented `$` variable prefix and `^` command
2023-03-26 17:32:20 +02:00
prefix (#642, #644, #645).
- Add support for `.yaml` extension (as an alternative to `.yml`). This was
requested multiple times throughout the years. Enjoy! (#183, #184, #369, #584,
#621).
- Fixed error when computing a variable when the task directory do not exist yet
(#481, #579).
## v3.9.2 - 2021-12-02
2023-03-26 17:32:20 +02:00
- Upgrade [mvdan/sh](https://github.com/mvdan/sh) which contains a fix a for a
important regression on Windows (#619,
[mvdan/sh#768](https://github.com/mvdan/sh/issues/768),
[mvdan/sh#769](https://github.com/mvdan/sh/pull/769)).
## v3.9.1 - 2021-11-28
2023-03-26 17:32:20 +02:00
- Add logging in verbose mode for when a task starts and finishes (#533, #588).
- Fix an issue with preconditions and context errors (#597, #598).
- Quote each `{{.CLI_ARGS}}` argument to prevent one with spaces to become many
2023-03-26 17:32:20 +02:00
(#613).
- Fix nil pointer when `cmd:` was left empty (#612, #614).
- Upgrade [mvdan/sh](https://github.com/mvdan/sh) which contains two relevant
fixes:
- Fix quote of empty strings in `shellQuote` (#609,
[mvdan/sh#763](https://github.com/mvdan/sh/issues/763)).
- Fix issue of wrong environment variable being picked when there's another
2023-03-26 17:32:20 +02:00
very similar one (#586,
[mvdan/sh#745](https://github.com/mvdan/sh/pull/745)).
- Install shell completions automatically when installing via Homebrew (#264,
#592,
[go-task/homebrew-tap#2](https://github.com/go-task/homebrew-tap/pull/2)).
2021-10-30 16:15:56 +02:00
2021-10-02 23:47:30 +02:00
## v3.9.0 - 2021-10-02
2021-10-02 23:07:54 +02:00
- A new `shellQuote` function was added to the template system
(`{{shellQuote "a string"}}`) to ensure a string is safe for use in shell
2023-03-26 17:32:20 +02:00
([mvdan/sh#727](https://github.com/mvdan/sh/pull/727),
[mvdan/sh#737](https://github.com/mvdan/sh/pull/737),
[Documentation](https://pkg.go.dev/mvdan.cc/sh/v3@v3.4.0/syntax#Quote))
- In this version [mvdan.cc/sh](https://github.com/mvdan/sh) was upgraded with
some small fixes and features
- The `read -p` flag is now supported (#314,
[mvdan/sh#551](https://github.com/mvdan/sh/issues/551),
[mvdan/sh#772](https://github.com/mvdan/sh/pull/722))
- The `pwd -P` and `pwd -L` flags are now supported (#553,
[mvdan/sh#724](https://github.com/mvdan/sh/issues/724),
[mvdan/sh#728](https://github.com/mvdan/sh/pull/728))
- The `$GID` environment variable is now correctly being set (#561,
[mvdan/sh#723](https://github.com/mvdan/sh/pull/723))
2021-10-02 23:07:54 +02:00
2021-09-27 03:29:57 +02:00
## v3.8.0 - 2021-09-26
2021-09-06 15:30:45 +02:00
- Add `interactive: true` setting to improve support for interactive CLI apps
2023-03-26 17:32:20 +02:00
(#217, #563).
- Fix some `nil` errors (#534, #573).
- Add ability to declare an included Taskfile as optional (#519, #552).
- Add support for including Taskfiles in the home directory by using `~` (#539,
#557).
2021-09-06 15:30:45 +02:00
2021-09-27 03:29:57 +02:00
## v3.7.3 - 2021-09-04
2021-09-05 02:52:46 +02:00
2023-03-26 17:32:20 +02:00
- Add official support to Apple M1 (#564, #567).
2021-09-05 02:52:46 +02:00
- Our [official Homebrew tap](https://github.com/go-task/homebrew-tap) will
support more platforms, including Apple M1
2021-08-01 02:36:03 +02:00
## v3.7.0 - 2021-07-31
- Add `run:` setting to control if tasks should run multiple times or not.
Available options are `always` (the default), `when_changed` (if a variable
modified the task) and `once` (run only once no matter what). This is a long
time requested feature. Enjoy! (#53, #359).
2021-07-11 04:13:03 +02:00
## v3.6.0 - 2021-07-10
2023-03-26 17:32:20 +02:00
- Allow using both `sources:` and `status:` in the same task (#411, #427, #477).
- Small optimization and bug fix: don't compute variables if not needed for
2023-03-26 17:32:20 +02:00
`dotenv:` (#517).
2021-07-05 02:53:22 +02:00
## v3.5.0 - 2021-07-04
2023-03-26 17:32:20 +02:00
- Add support for interpolation in `dotenv:` (#433, #434, #453).
2021-05-31 04:03:10 +02:00
## v3.4.3 - 2021-05-30
2021-05-21 02:30:10 +02:00
- Add support for the `NO_COLOR` environment variable. (#459,
[fatih/color#137](https://github.com/fatih/color/pull/137)).
- Fix bug where sources were not considering the right directory in `--watch`
mode (#484, #485).
2021-05-21 02:30:10 +02:00
2021-04-23 23:11:31 +02:00
## v3.4.2 - 2021-04-23
2023-03-26 17:32:20 +02:00
- On watch, report which file failed to read (#472).
- Do not try to catch SIGKILL signal, which are not actually possible (#476).
- Improve version reporting when building Task from source using Go Modules
2023-03-26 17:32:20 +02:00
(#462, #473).
2021-04-17 22:48:36 +02:00
## v3.4.1 - 2021-04-17
- Improve error reporting when parsing YAML: in some situations where you would
just see an generic error, you'll now see the actual error with more detail:
the YAML line the failed to parse, for example (#467).
2021-04-17 16:58:49 +02:00
- A JSON Schema was published [here](https://json.schemastore.org/taskfile.json)
2021-04-17 22:57:08 +02:00
and is automatically being used by some editors like Visual Studio Code
2023-03-26 17:32:20 +02:00
(#135).
- Print task name before the command in the log output (#398).
2021-03-20 18:21:00 +02:00
## v3.3.0 - 2021-03-20
2020-06-12 20:09:53 +02:00
- Add support for delegating CLI arguments to commands with `--` and a special
`CLI_ARGS` variable (#327).
- Add a `--concurrency` (alias `-C`) flag, to limit the number of tasks that run
concurrently. This is useful for heavy workloads. (#345).
2020-06-12 20:09:53 +02:00
2021-02-16 22:52:32 +02:00
## v3.2.2 - 2021-01-12
- Improve performance of `--list` and `--summary` by skipping running shell
2023-03-26 17:32:20 +02:00
variables for these flags (#332).
- Fixed a bug where an environment in a Taskfile was not always overridable by
the system environment (#425).
2023-03-26 17:32:20 +02:00
- Fixed environment from .env files not being available as variables (#379).
- The install script is now working for ARM platforms (#428).
2021-02-16 22:52:32 +02:00
## v3.2.1 - 2021-01-09
2021-01-09 15:46:53 +02:00
- Fixed some bugs and regressions regarding dynamic variables and directories
2023-03-26 17:32:20 +02:00
(#426).
2021-01-09 15:46:53 +02:00
- The [slim-sprig](https://github.com/go-task/slim-sprig) package was updated
with the upstream [sprig](https://github.com/Masterminds/sprig).
2021-02-16 22:52:32 +02:00
## v3.2.0 - 2021-01-07
- Fix the `.task` directory being created in the task directory instead of the
2023-03-26 17:32:20 +02:00
Taskfile directory (#247).
- Fix a bug where dynamic variables (those declared with `sh:`) were not running
in the task directory when the task has a custom dir or it was in an included
Taskfile (#384).
- The watch feature (via the `--watch` flag) got a few different bug fixes and
2023-03-26 17:32:20 +02:00
should be more stable now (#423, #365).
2021-02-16 22:52:32 +02:00
## v3.1.0 - 2021-01-03
- Fix a bug when the checksum up-to-date resolution is used by a task with a
custom `label:` attribute (#412).
- Starting from this release, we're releasing official ARMv6 and ARM64 binaries
2023-03-26 17:32:20 +02:00
for Linux (#375, #418).
2021-01-01 23:57:28 +02:00
- Task now respects the order of declaration of included Taskfiles when
2023-03-26 17:32:20 +02:00
evaluating variables declaring by them (#393).
- `set -e` is now automatically set on every command. This was done to fix an
issue where multiline string commands wouldn't really fail unless the sentence
was in the last line (#403).
2021-02-16 22:52:32 +02:00
## v3.0.1 - 2020-12-26
- Allow use as a library by moving the required packages out of the `internal`
2023-03-26 17:32:20 +02:00
directory (#358).
- Do not error if a specified dotenv file does not exist (#378, #385).
- Fix panic when you have empty tasks in your Taskfile (#338, #362).
## v3.0.0 - 2020-08-16
2023-03-26 17:32:20 +02:00
- On `v3`, all CLI variables will be considered global variables (#336, #341)
- Add support to `.env` like files (#324, #356).
- Add `label:` to task so you can override the task name in the logs (#321,
#337).
2023-03-26 17:32:20 +02:00
- Refactor how variables work on version 3 (#311).
2020-05-21 03:32:30 +02:00
- Disallow `expansions` on v3 since it has no effect.
- `Taskvars.yml` is not automatically included anymore.
- `Taskfile_{{OS}}.yml` is not automatically included anymore.
- Allow interpolation on `includes`, so you can manually include a Taskfile
based on operation system, for example.
2023-03-26 17:32:20 +02:00
- Expose `.TASK` variable in templates with the task name (#252).
- Implement short task syntax (#194, #240).
2020-02-15 17:07:27 +02:00
- Added option to make included Taskfile run commands on its own directory
2023-03-26 17:32:20 +02:00
(#260, #144)
- Taskfiles in version 1 are not supported anymore (#237).
- Added global `method:` option. With this option, you can set a default method
to all tasks in a Taskfile (#246).
2023-03-26 17:32:20 +02:00
- Changed default method from `timestamp` to `checksum` (#246).
- New magic variables are now available when using `status:`: `.TIMESTAMP` which
contains the greatest modification date from the files listed in `sources:`,
and `.CHECKSUM`, which contains a checksum of all files listed in `status:`.
2019-09-14 23:09:34 +02:00
This is useful for manual checking when using external, or even remote,
2023-03-26 17:32:20 +02:00
artifacts when using `status:` (#216).
2019-06-23 03:47:23 +02:00
- We're now using [slim-sprig](https://github.com/go-task/slim-sprig) instead of
[sprig](https://github.com/Masterminds/sprig), which allowed a file size
2023-03-26 17:32:20 +02:00
reduction of about 22% (#219).
2019-08-12 04:10:12 +02:00
- We now use some colors on Task output to better distinguish message types -
2023-03-26 17:32:20 +02:00
commands are green, errors are red, etc (#207).
2019-06-23 03:47:23 +02:00
2021-02-16 22:52:32 +02:00
## v2.8.1 - 2020-05-20
2020-05-01 20:50:32 +02:00
2023-03-26 17:32:20 +02:00
- Fix error code for the `--help` flag (#300, #330).
- Print version to stdout instead of stderr (#299, #329).
- Suppress `context` errors when using the `--watch` flag (#313, #317).
2023-03-26 17:32:20 +02:00
- Support templating on description (#276, #283).
2020-05-01 20:50:32 +02:00
2019-12-08 02:54:10 +02:00
## v2.8.0 - 2019-12-07
2019-10-27 23:27:47 +02:00
2019-11-16 04:31:01 +02:00
- Add `--parallel` flag (alias `-p`) to run tasks given by the command line in
2023-03-26 17:32:20 +02:00
parallel (#266).
- Fixed bug where calling the `task` CLI only informing global vars would not
execute the `default` task.
- Add ability to silent all tasks by adding `silent: true` a the root of the
Taskfile.
2019-11-16 04:31:01 +02:00
2019-11-11 01:36:17 +02:00
## v2.7.1 - 2019-11-10
2019-10-27 23:27:47 +02:00
2023-03-26 17:32:20 +02:00
- Fix error being raised when `exit 0` was called (#251).
2019-10-27 23:27:47 +02:00
2019-09-22 23:21:31 +02:00
## v2.7.0 - 2019-09-22
2019-06-16 02:12:54 +02:00
2023-03-26 17:32:20 +02:00
- Fixed panic bug when assigning a global variable (#229, #243).
2019-08-25 21:41:54 +02:00
- A task with `method: checksum` will now re-run if generated files are deleted
2023-03-26 17:32:20 +02:00
(#228, #238).
2019-08-12 04:01:25 +02:00
2019-07-21 16:23:49 +02:00
## v2.6.0 - 2019-07-21
2019-06-16 02:12:54 +02:00
- Fixed some bugs regarding minor version checks on `version:`.
2023-03-26 17:32:20 +02:00
- Add `preconditions:` to task (#205).
- Create directory informed on `dir:` if it doesn't exist (#209, #211).
- We now have a `--taskfile` flag (alias `-t`), which can be used to run another
Taskfile (other than the default `Taskfile.yml`) (#221).
- It's now possible to install Task using Homebrew on Linux
([go-task/homebrew-tap#1](https://github.com/go-task/homebrew-tap/pull/1)).
2019-06-16 02:12:54 +02:00
2019-05-11 16:28:21 +02:00
## v2.5.2 - 2019-05-11
- Reverted YAML upgrade due issues with CRLF on Windows (#201,
[go-yaml/yaml#450](https://github.com/go-yaml/yaml/issues/450)).
2023-03-26 17:32:20 +02:00
- Allow setting global variables through the CLI (#192).
2019-04-27 22:56:30 +02:00
## 2.5.1 - 2019-04-27
2019-04-21 22:16:35 +02:00
2023-03-26 17:32:20 +02:00
- Fixed some issues with interactive command line tools, where sometimes the
output were not being shown, and similar issues (#114, #190, #200).
2019-04-27 22:28:58 +02:00
- Upgraded [go-yaml/yaml](https://github.com/go-yaml/yaml) from v2 to v3.
2019-04-21 22:16:35 +02:00
2019-04-27 22:28:58 +02:00
## v2.5.0 - 2019-03-16
2019-03-05 03:08:19 +02:00
- We moved from the taskfile.org domain to the new fancy taskfile.dev domain.
While stuff is being redirected, we strongly recommend to everyone that use
[this install script](https://taskfile.dev/#/installation?id=install-script)
to use the new taskfile.dev domain on scripts from now on.
2023-03-26 17:32:20 +02:00
- Fixed to the ZSH completion (#182).
- Add
[`--summary` flag along with `summary:` task attribute](https://taskfile.org/#/usage?id=display-summary-of-task)
(#180).
2019-03-05 03:08:19 +02:00
2019-02-22 02:27:18 +02:00
## v2.4.0 - 2019-02-21
2023-03-26 17:32:20 +02:00
- Allow calling a task of the root Taskfile from an included Taskfile by
prefixing it with `:` (#161, #172).
- Add flag to override the `output` option (#173).
- Fix bug where Task was persisting the new checksum on the disk when the Dry
2023-03-26 17:32:20 +02:00
Mode is enabled (#166).
- Fix file timestamp issue when the file name has spaces (#176).
- Mitigating path expanding issues on Windows (#170).
2019-01-02 17:44:27 +02:00
## v2.3.0 - 2019-01-02
2018-12-24 19:03:30 +02:00
2023-03-26 17:32:20 +02:00
- On Windows, Task can now be installed using [Scoop](https://scoop.sh/) (#152).
- Fixed issue with file/directory globing (#153).
- Added ability to globally set environment variables (#138, #159).
2018-12-24 19:03:30 +02:00
## v2.2.1 - 2018-12-09
2023-03-26 17:32:20 +02:00
- This repository now uses Go Modules (#143). We'll still keep the `vendor`
directory in sync for some time, though;
- Fixing a bug when the Taskfile has no tasks but includes another Taskfile
(#150);
- Fix a bug when calling another task or a dependency in an included Taskfile
(#151).
## v2.2.0 - 2018-10-25
- Added support for
[including other Taskfiles](https://taskfile.org/#/usage?id=including-other-taskfiles)
(#98)
2023-03-26 17:32:20 +02:00
- This should be considered experimental. For now, only including local files
is supported, but support for including remote Taskfiles is being discussed.
If you have any feedback, please comment on #98.
- Task now have a dedicated documentation site: https://taskfile.org
2023-03-26 17:32:20 +02:00
- Thanks to [Docsify](https://docsify.js.org/) for making this pretty easy. To
check the source code, just take a look at the
[docs](https://github.com/go-task/task/tree/main/docs) directory of this
2023-03-26 17:32:20 +02:00
repository. Contributions to the documentation is really appreciated.
## v2.1.1 - 2018-09-17
2023-03-26 17:32:20 +02:00
- Fix suggestion to use `task --init` not being shown anymore (when a
`Taskfile.yml` is not found)
- Fix error when using checksum method and no file exists for a source glob
(#131)
- Fix signal handling when the `--watch` flag is given (#132)
## v2.1.0 - 2018-08-19
- Add a `ignore_error` option to task and command (#123)
- Add a dry run mode (`--dry` flag) (#126)
## v2.0.3 - 2018-06-24
- Expand environment variables on "dir", "sources" and "generates" (#116)
- Fix YAML merging syntax (#112)
- Add ZSH completion (#111)
2023-03-26 17:32:20 +02:00
- Implement new `output` option. Please check out the
[documentation](https://github.com/go-task/task#output-syntax)
## v2.0.2 - 2018-05-01
- Fix merging of YAML anchors (#112)
## v2.0.1 - 2018-03-11
- Fixes panic on `task --list`
## v2.0.0 - 2018-03-08
Version 2.0.0 is here, with a new Taskfile format.
Please, make sure to read the
[Taskfile versions](https://github.com/go-task/task/blob/main/TASKFILE_VERSIONS.md)
2023-03-26 17:32:20 +02:00
document, since it describes in depth what changed for this version.
2023-03-26 17:32:20 +02:00
- New Taskfile version 2 (#77)
- Possibility to have global variables in the `Taskfile.yml` instead of
`Taskvars.yml` (#66)
- Small improvements and fixes
## v1.4.4 - 2017-11-19
- Handle SIGINT and SIGTERM (#75);
- List: print message with there's no task with description;
- Expand home dir ("~" symbol) on paths (#74);
- Add Snap as an installation method;
- Move examples to its own repo;
- Watch: also walk on tasks called on on "cmds", and not only on "deps";
- Print logs to stderr instead of stdout (#68);
- Remove deprecated `set` keyword;
- Add checksum based status check, alternative to timestamp based.
## v1.4.3 - 2017-09-07
- Allow assigning variables to tasks at run time via CLI (#33)
- Added support for multiline variables from sh (#64)
- Fixes env: remove square braces and evaluate shell (#62)
- Watch: change watch library and few fixes and improvements
2023-03-26 17:32:20 +02:00
- When use watching, cancel and restart long running process on file change (#59
and #60)
## v1.4.2 - 2017-07-30
- Flag to set directory of execution
- Always echo command if is verbose mode
- Add silent mode to disable echoing of commands
- Fixes and improvements of variables (#56)
## v1.4.1 - 2017-07-15
- Allow use of YAML for dynamic variables instead of $ prefix
- `VAR: {sh: echo Hello}` instead of `VAR: $echo Hello`
- Add `--list` (or `-l`) flag to print existing tasks
2023-03-26 17:32:20 +02:00
- OS specific Taskvars file (e.g. `Taskvars_windows.yml`, `Taskvars_linux.yml`,
etc)
- Consider task up-to-date on equal timestamps (#49)
- Allow absolute path in generates section (#48)
- Bugfix: allow templating when calling deps (#42)
- Fix panic for invalid task in cyclic dep detection
- Better error output for dynamic variables in Taskvars.yml (#41)
- Allow template evaluation in parameters
## v1.4.0 - 2017-07-06
- Cache dynamic variables
- Add verbose mode (`-v` flag)
- Support to task parameters (overriding vars) (#31) (#32)
- Print command, also when "set:" is specified (#35)
- Improve task command help text (#35)
## v1.3.1 - 2017-06-14
- Fix glob not working on commands (#28)
- Add ExeExt template function
- Add `--init` flag to create a new Taskfile
- Add status option to prevent task from running (#27)
- Allow interpolation on `generates` and `sources` attributes (#26)
## v1.3.0 - 2017-04-24
- Migrate from os/exec.Cmd to a native Go sh/bash interpreter
- This is a potentially breaking change if you use Windows.
2023-03-26 17:32:20 +02:00
- Now, `cmd` is not used anymore on Windows. Always use Bash-like syntax for
your commands, even on Windows.
- Add "ToSlash" and "FromSlash" to template functions
- Use functions defined on github.com/Masterminds/sprig
- Do not redirect stdin while running variables commands
2023-03-26 17:32:20 +02:00
- Using `context` and `errgroup` packages (this will make other tasks to be
cancelled, if one returned an error)
## v1.2.0 - 2017-04-02
- More tests and Travis integration
- Watch a task (experimental)
- Possibility to call another task
- Fix "=" not being recognized in variables/environment variables
- Tasks can now have a description, and help will print them (#10)
- Task dependencies now run concurrently
- Support for a default task (#16)
## v1.1.0 - 2017-03-08
- Support for YAML, TOML and JSON (#1)
- Support running command in another directory (#4)
- `--force` or `-f` flag to force execution of task even when it's up-to-date
- Detection of cyclic dependencies (#5)
- Support for variables (#6, #9, #14)
- Operation System specific commands and variables (#13)
## v1.0.0 - 2017-02-28
- Add LICENSE file