Up to [cvs.NetBSD.org] / pkgsrc / devel / task
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revbump for Go update (ticket #7379)
Revbump all Go packages after go127 update
*: Revbump for go126, go127. Ticket #7311
Revbump all Go packages after go127 security update
Revbump all Go packages after go127 security update
devel/task: update to 3.54.0
Features
* Added versioned Homebrew casks (go-task@<major>.<minor>) to install a
specific minor version of Task.
* Added a remote.headers config option to send HTTP headers when downloading a
remote Taskfile, configured per host. Header values support templating
functions, e.g. {{env "GITLAB_TOKEN"}}. This keeps the credential out of the
include URL, where it would leak into error messages and the confirmation
prompt.
Fixes
* Fixed remote Git Taskfile cache poisoning on shared hosts (GHSA-679p-658w-m3wr).
* Fixed tasks cancelled by the user returning exit code 201 instead of 205.
* Fixed a bug on Windows where watching source paths did not work as expected.
* Fixed a remote Taskfile whose server refuses the credentials being reported as
a missing Taskfile. A 401 now stops the search and reports the status code,
instead of retrying every default Taskfile name and concluding that no
Taskfile exists.
* task --completion <shell> now serves a new completion engine that unifies
Bash, Fish, Zsh, Nushell and PowerShell behind a single task __complete
command, so every shell offers the same suggestions: task names, aliases,
flags, flag values and per-task CLI variables. The Zsh show-aliases and
verbose zstyles keep working, now backed by the --no-aliases and
--no-descriptions completion flags.
Package API
* Bumped the minimum Go version to 1.26. Task follows Go's two-latest support
window, and is now tested against 1.26 and 1.27. This only affects projects
importing Task as a Go module.
Other
* Refactored some functional options to always return a concrete type instead of
an interface and moved options into their own file.
* Refactored the execext package to use mvdan/sh's new BashOpts API.
Revbump all Go packages after go127 update
Revbump all Go packages after go127 became the default
Revbump all Go packages after go126 update
devel/task: update to 3.53.1
Features
* Remote Taskfiles are now generally available! This has been an
experimental feature for 3 years, but is now enabled by default. Massive
thanks to all those that contributed and gave feedback (too many to list
here). We've also given the Remote Taskfiles documentation a bit of a
polish.
* Added a per-command timeout that terminates a command once it exceeds the
given duration (Go duration syntax). It covers shell commands, task
calls, deferred commands, deps and the if condition, obeys ignore_error,
and reports exit code 124. Callers that join a run: once or when_changed
task already running now honor their own timeout, and inherit that task's
failure instead of being told it succeeded.
* Considerably improve performance of fingerprinting on large repositories
(monorepos). Fingerprinting is up to 86% faster and make up to 70% fewer
memory allocations on the more advanced scenarios. Benchmarks were added
as well. We're basically skipping work when not needed.
* Further improved fingerprinting performance on large repositories:
hashing source files now reuses a single buffer, reducing memory
allocations by ~98% and wall-clock time by ~7%.
* includes.excludes can now exclude a whole namespace: append :* to the
namespace name, e.g. excludes: ['debug:*']. Bare entries still match a
single task name exactly.
* Added support for enum.ref in --interactive prompts. Required vars using
enum.ref now show the selection list like static enums, instead of
falling back to free-form input.
* Added Nushell completions, available via task --completion nu. They
complete task names and aliases, every flag with its description, and the
values of --completion, --output and --sort.
* Added a verbose log line for failed tasks. In --verbose mode, a task
whose command exits non-zero now reports task: "<name>" failed: <error>
instead of stopping without a trace.
Fixes
* Fixed a pinned checksum: not being verified when a remote Taskfile came
from the cache.
* Fixed the fingerprint variable ({{.CHECKSUM}}/{{.TIMESTAMP}}) ignoring a
method: set at the Taskfile level: the variable now follows the same
method resolution as the up-to-date check. Only the variable matching the
effective method is injected, so a task inheriting a Taskfile-level
method: timestamp gets {{.TIMESTAMP}} and no longer a {{.CHECKSUM}}
(which now renders as an empty string), and neither variable is injected
when the effective method is none.
* Fixed ref: in for: matrix: and enum: only accepting literal lists. Refs
computed with template functions like keys or splitList no longer fail
with "must resolve to a list".
* Fixed pressing Esc at an interactive variable prompt not cancelling the
run.
* Fixed joinUrl collapsing the // in a URL scheme (e.g. producing
http:/localhost instead of http://localhost).
* Fixed the JSON schema rejecting ignore_error on a command inside a for
loop. Editors no longer flag a Taskfile that Task runs perfectly fine.
* Fixed the JSON schema rejecting more keys the Taskfile parser accepts:
ignore_error on a task: call, and if, set and shopt on a command inside a
for loop.
Documentation & Website
* Updated taskfile versions doc to mention when version checks were
introduced.
* Load the sidebar data and titles/excerpts from the blog post markdown
document and its frontmatter on the website.
Revbump all Go packages after Go 1.26 update
Revbump all Go packages after go126 update
Revbump all Go packages after go126 update
devel/task: update to 3.52.0 * Fixed --interactive prompts for required vars sometimes appearing in a random order. Prompts now follow the order the vars are declared in the Taskfile. * Fixed Fish completions not being picked up correctly by installing them to Fish's vendor_completions.d directory instead of completions. * PowerShell completions now work with aliases of the task command, not just the task binary itself. * Fixed task and namespace aliases not being completed by the Zsh completion. A show-aliases zstyle can turn this off. * Fixed task names containing certain characters (e.g. \, _, ^) leaking into checksum/timestamp filenames, breaking sources:/generates: up-to-date detection. * Fixed for: matrix: loops using ref: rows producing wrong values when the same task was run concurrently (e.g. by parallel deps) with different vars. * Added a secret: true flag for variables that masks their value in logs, task --summary, and command output. * Added the use_gitignore setting (global or per-task) to skip files matched by your .gitignore when fingerprinting sources/generates and when watching. * Added support for configuring output flags (--output, --output-group-begin, --output-group-end, --output-group-error-only) via the TASK_OUTPUT* environment variables. * Added a --temp-dir flag (with TASK_TEMP_DIR env var and temp-dir taskrc config) to customise the directory where Task stores temporary files such as checksums. Relative paths are resolved against the root Taskfile. * Defined environment variable behavior for remote taskfiles. * Added support for remote Taskfiles hosted on Azure DevOps, whose git URLs use a /_git/ path segment rather than a .git suffix. * Re-added the example remote taskfile at taskfile.dev/Taskfile.yml. * Fixed malformed includes: entries (missing taskfile/dir) reporting a misleading "include cycle detected" error instead of a clear configuration error.
devel/task: update to 3.51.1 * A significant performance boost was achieved for large Taskfiles (monorepos) by skipping templating altogether when the string is static. * Added absPath template function that resolves a path to its absolute form, cleaning .. and . components. * Added joinEnv function to join paths based on your oprating system: ; for Windows and : elsewhere, and joinUrl to join URL paths. Also, added two new special variables: FILE_PATH_SEPARATOR which returns \ on Windows and / elsewhere, and PATH_LIST_SEPARATOR which returns ; on Windows and : elsewhere. * Update the shell interpreter with a regression fix. * Fix potential panic with the shell interpreter.
Revbump all Go packages after go126 security update
Revbump all Go packages after go126 security update
devel/task: update to 3.50.0 * Added enum.ref support in requires: enum constraints can now reference variables or template pipelines (e.g., ref: .ALLOWED_ENVS) instead of duplicating static lists. Combined with sh: variables, this enables fully dynamic enum validation. * Fixed Fish completion using hardcoded task binary name instead of $GO_TASK_PROGNAME for experiments cache. * Fixed watch mode ignoring SIGHUP signal, causing the watcher to exit instead of restarting. * Fixed a long time bug where the task wouldn't re-run as it should when using method: timestamp and the files listed on generates: were deleted. This makes method: timestamp behaves the same as method: checksum.
Revbump all Go packages after go126 security fix
Revbump all Go packages after security update
devel/task: update to 3.49.1 v3.49.1 * Reverted #2632 for now, which caused some regressions. That change will be reworked. v3.49.0 * Fixed included Taskfiles with watch: true not triggering watch mode when called from the root Taskfile. * Fixed Remote Git Taskfiles failing on Windows due to backslashes in URL paths. * Fixed Remote Git Taskfiles timing out when resolving includes after accepting the trust prompt. * Fixed unclear error message when Taskfile search stops at a directory ownership boundary. * Fixed global variables from imported Taskfiles not resolving ref: values correctly. * Every .taskrc.yml option can now be overridden with a TASK_-prefixed environment variable, making CI and container configuration easier.
Revbump all Go packages after go126 update
Revbump all Go packages after default version bump
devel/task: update to 3.48.0
v3.48.0 - 2026-01-26
* Fixed if: conditions when using to check dynamic variables. Also, skip
variable prompt if task would be skipped by if:.
* Fixed ROOT_TASKFILE variable pointing to directory instead of the actual
Taskfile path when no explicit -t flag is provided.
* Included Taskfiles with silent: true now properly propagate silence to
their tasks, while still allowing individual tasks to override with
silent: false.
* Added TLS certificate options for Remote Taskfiles: use --cacert for
self-signed certificates and --cert/--cert-key for mTLS authentication.
v3.47.0 - 2026-01-24
* Fixed remote git Taskfiles: cloning now works without explicit ref, and
directory includes are properly resolved.
* For output: prefixed, print prefix: if set instead of task name
* Ensure no ANSI sequences are printed for --color=false.
* Task aliases can now contain wildcards and will match accordingly
(e.g., s-* as alias for start-*).
* Added conditional execution with the if field: skip tasks, commands, or
task calls based on shell exit codes or template expressions like
{{ eq .ENV "prod" }}.
* Task can now interactively prompt for missing required variables when
running in a TTY, with support for enum selection menus. Enable with
--interactive flag or interactive: true in .taskrc.yml.
Revbump all Go packages after go125 update
devel/task: update to 3.46.4 v3.46.4 - 2025-12-24 * Fixed regressions in completion script for Fish. v3.46.3 - 2025-12-19 * Fixed regression in completion script for zsh. v3.46.2 - 2025-12-18 * Fixed a regression on previous release that affected variables passed via command line. v3.46.1 - 2025-12-18 Features * A small behavior change was made to dependencies. Task will now wait for all dependencies to finish running before continuing, even if any of them fail. To opt for the previous behavior, set failfast: true either on your .taskrc.yml or per task, or use the --failfast flag, which will also work for --parallel. * The --summary flag now displays vars: (both global and task-level), env:, and requires: sections. Dynamic variables show their shell command (e.g., sh: echo "hello") instead of the evaluated value. * Improved performance of fuzzy task name matching by implementing lazy initialization. Added --disable-fuzzy flag and disable-fuzzy taskrc option to allow disabling fuzzy matching entirely. * Added LLM-optimized documentation via VitePress plugin, generating llms.txt and llms-full.txt for AI-powered development tools. * Added --trusted-hosts CLI flag and remote.trusted-hosts config option to skip confirmation prompts for specified hosts when using Remote Taskfiles. * When running in GitHub Actions, Task now automatically emits error annotations on failure, improving visibility in workflow summaries. * The --yes flag is now accessible in templates via the new CLI_ASSUME_YES variable. * Improved shell completion scripts (Zsh, Fish, PowerShell) by adding missing flags and dynamic experimental feature detection. * Remote Taskfiles now accept application/octet-stream Content-Type. * Shell completion now works when Task is installed or aliased under a different binary name via TASK_EXE environment variable. * Some small fixes and improvements were made to task --init and to the default Taskfile it generates. * Added --remote-cache-dir flag and remote.cache-dir taskrc option to customize the cache directory for Remote Taskfiles. * Zsh completion now supports zstyle verbose option to show or hide task descriptions. * Task now automatically enables colored output in CI environments (GitHub Actions, GitLab CI, etc.) without requiring FORCE_COLOR=1. * Added color taskrc option to explicitly enable or disable colored output globally. * Improved Git Remote Taskfiles by switching to go-getter: SSH authentication now works out of the box and applyOf is properly supported. Fixes * Fix RPM upload to Cloudsmith by including the version in the filename to ensure unique filenames. * Fix run: when_changed to work properly for Taskfiles included multiple times. * Fixed Zsh and Fish completions to stop suggesting task names after -- separator, allowing proper CLI_ARGS completion. * Watch mode (--watch) now always runs the task, regardless of run: once or run: when_changed settings. * Fixed global variables (CLI_ARGS, CLI_FORCE, etc.) not being accessible in root-level vars section. * Fixed a bug where ignore_error was ignored when using task: to call another task. * Fixed Zsh completion not suggesting global tasks when using -g/--global flag. * Fixed Fish completion failing to parse task descriptions containing colons (e.g., URLs or namespaced functions). * Fixed false positive "property 'for' is not allowed" warnings in IntelliJ when using for loops in Taskfiles.
Revbump all Go packages after go125 update
devel/task: update to 3.45.5 * Fixed bug that made a generic message, instead of an useful one, appear when a Taskfile could not be found. * Fixed a bug that caused an error when including a Remote Git Taskfile. * Fixed issue where .taskrc.yml was not returned if reading it failed, and corrected handling of remote entrypoint Taskfiles. * Improved performance of --list and --list-all by introducing a faster compilation method that skips source globbing and checksum updates. * Fixed a concurrency bug with output: group. This ensures that begin/end parts won't be mixed up from different tasks. * Do not re-evaluate variables for defer:. * Improve error message when a Taskfile is not found. * Fixed generic error message exit status 1 when a dependency task failed. * Fixed YAML library from the unmaintained gopkg.in/yaml.v3 to the new fork maintained by the official YAML org. * On Windows, the built-in version of the rm core utils contains a fix related to the -f flag.
Revbump all Go packages after go125 update
devel/task: update to 3.45.4
v3.45.4 - 2025-09-17
* Fixed a bug where cache-expiry could not be defined in .taskrc.yml.
* Fixed a bug where .taskrc.yml files in parent folders were not read
correctly.
* Fixed a bug where autocomplete in subfolders did not work with zsh.
v3.45.3 - 2025-09-15
* Task now includes built-in core utilities to greatly improve
compatibility on Windows. This means that your commands that uses cp, mv,
mkdir or any other common core utility will now work by default on
Windows, without extra setup. This is something we wanted to address for
many many years, and it's finally being shipped! Read our blog post this
the topic..
* Built and deployed a brand new website using VitePress.
* Began releasing nightly builds. This will allow people to test our
changes before they are fully released and without having to install Go
to build them.
* Added support for global config files in $XDG_CONFIG_HOME/task/taskrc.yml
or $HOME/.taskrc.yml. Check out our new configuration guide for more
details.
* Added experiments to the taskrc schema to clarify the expected keys and
values.
* Added support for new properties in .taskrc.yml: insecure, verbose,
concurrency, remote offline, remote timeout, and remote expiry.
Note: setting offline via environment variable is no longer supported.
* Added a --nested flag when outputting tasks using --list --json. This
will output tasks in a nested structure when tasks are namespaced.
* Enhanced support for tasks with wildcards: they are now logged correctly,
and wildcard parameters are fully considered during fingerprinting.
* Fixed panic when a variable was declared as an empty hash ({}).
Package API
* Bumped the minimum version of Go to 1.24.
Other news
We recently released our official GitHub Action. This is based on the
fantastic work by the Arduino team who created and maintained the community
version. Now that this is officially adopted, fixes/updates should be more
timely. We have already merged a couple of longstanding PRs in our first
release.
v3.45.0-v3.45.2 - 2025-09-15
Failed due to an issue with our release process.
Revbump all Go packages after go125 update
Revbump all Go packages after go125 security update
Revbump all Go packages after moving to go125
devel/task: update to 3.44.1 * Internal tasks will no longer be shown as suggestions since they cannot be called * Fixed install script for some ARM platforms. * Fixed a regression where fingerprinting was not working correctly if the path to you Taskfile contained a space. * Reverted a breaking change to randInt. * Made new variables TEST_NAME and TEST_DIR available in fixture tests.
devel/task: update to 3.44.0 * Added: uuid, randInt and randIntN template functions. * Added: new CLI_ARGS_LIST array variable which contains the arguments passed to Task after the -- (the same as CLI_ARGS, but an array instead of a string). * Added: toYaml and fromYaml templating functions. * Added: task field the --list --json output. * Added: the ability to pin included taskfiles by specifying a checksum. This works with both local and remote Taskfiles. * When: using the Remote Taskfiles experiment, any credentials used in the URL will now be redacted in Task's output. * Fixed: fuzzy suggestions not working when misspelling a task name. * Fixed: a bug where taskfiles in directories containing spaces created directories in the wrong location. * Added: support for dual JSON schema files, allowing changes without affecting the current schema. The current schemas will only be updated during releases. * Improved: fingerprint documentation by specifying that the method can be set at the root level to apply to all tasks. * Fixed: some watcher regressions after #2048.
Revbump all Go packages after go124 update
devel/task: update to 3.43.3
Pkgsrc changes:
* Remove -ldflags for version and sum as the version is provided from
version.txt in the package.
Upstream changes:
v3.43.3
* Reverted the changes made in #2113 and #2186 that affected the
USER_WORKING_DIR and built-in variables.
This fixes #2206, #2195, #2207 and #2208.
v3.43.2
* Fixed regresion of CLI_ARGS being exposed as the wrong type.
v3.43.1
* Significant improvements were made to the watcher. We migrated from
watcher to fsnotify. The former library used polling, which means Task had
a high CPU usage when watching too many files. fsnotify uses proper the
APIs from each operating system to watch files, which means a much better
performance. The default interval changed from 5 seconds to 100
milliseconds, because now it configures the wait time for duplicated
events, instead of the polling time.
* The Map Variables experiment was made generally available so you can now
define map variables in your Taskfiles!.
* Wildcards can now match multiple tasks.
* Added the ability to loop over the files specified by the generates
keyword. This works the same way as looping over sources.
* Added the ability to resolve variables when defining an include
variable.
* A few changes have been made to the Remote Taskfiles experiment:
* Cached files are now prioritized over remote ones.
* Added an --expiry flag which sets the TTL for a remote file cache. By
default the value will be 0 (caching disabled). If Task is running in
offline mode or fails to make a connection, it will fallback on the
cache.
* .taskrc files can now be used from subdirectories and will be searched for
recursively up the file tree in the same way that Taskfiles are.
* The default taskfile (output when using the --init flag) is now an
embedded file in the binary instead of being stored in the code.
* Improved the way we report the Task version when using the --version flag
or {{.TASK_VERSION}} variable. This should now be more consistent and
easier for package maintainers to use.
* Fixed a bug where globstar (**) matching in sources only resolved the
first result.
* Fixed a bug where sorting tasks by "none" would use the default sorting
instead of leaving tasks in the order they were defined.
* Fixed Fish completion on newer Fish versions.
* Fixed a bug where undefined/null variables resolved to an empty string
instead of nil.
* The USER_WORKING_DIR special now will now properly account for the --dir
(-d) flag, if given.
* Fix Fish completions when --global (-g) is given.
* Fixed variables not available when using defer:.
devel/task: update to 3.42.1 v3.42.1 * Fixed a bug where some special variables caused a type error when used in global variables. v3.42.0 * Made --init less verbose by default and respect --silent and --verbose flags. * --init now accepts a file name or directory as an argument. * Fix a bug where an HTTP node's location was being mutated incorrectly. * Fixed a bug where allowed values didn't work with dynamic var. * Use only the relevant checker (timestamp or checksum) to improve performance. * Print warnings when attempting to enable an inactive experiment or an active experiment with an invalid value. * Refactored the experiments package and added tests. * Show allowed values when a variable with an enum is missing. * Refactored how snippets in error work and added tests. * Fixed a bug where errors decoding commands were sometimes unhelpful. * Fixed a bug in the Taskfile schema where defer statements in the shorthand cmds syntax were not considered valid. * Refactored how task sorting functions work. * Added a new .taskrc.yml (or .taskrc.yaml) file to let users enable experiments (similar to .env). * Added new Getting Started docs. * Allow matrix to use references to other variables. * Fixed a bug where, when a dynamic variable is provided, even if it is not used, all other variables become unavailable in the templating system within the include.
Pulup ticket #6952 - Update PKGREVISION for all Go packages. Go had a security update to one of the builtin libraries.
Belated revbump for all Go packages after go124 update I forgot to do the revbump again, sorry for doing it so late after the update.
Revbump all Go packages after go124 update I realize I forgot to do the revbump after updating the default Go version to 1.24, so let's do that now.
devel/task: update to 3.41.0 * Fixed: an issue where dynamic variables were not properly logged in verbose mode. * Support: silent for defer statements. * Added: an option to exclude some tasks from being included. * Fixed: an issue where a required variable was incorrectly handled in a template function. * Expose: a new TASK_DIR special variable, which will contain the absolute path of task directory.. * Fixed: fatal bugs that caused concurrent map writes). * Refactored: internal ordered map implementation to use github.com/elliotchance/orderedmap. * Fixed: a bug where variables defined at the task level were being ignored in the requires section. * The: CHECKSUM and TIMESTAMP variables are now accessible within cmds. * Updated: installation docs and added pip installation method. * Fixed: a bug where dynamic variables could not access environment variables. * Disable: version check for use as an external library.
devel/task: update to 3.40.1 * Fixed a security issue in git-urls by switching to the maintained fork chainguard-dev/git-urls. * Added missing platforms property to cmds that use for. * Added misspell linter to check for misspelled English words.
devel/task: import task version 3.40.0 Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.