From 780bd084900f5ce656e42e899684fe7f89a5a0c3 Mon Sep 17 00:00:00 2001 From: lambdalisue Date: Thu, 6 Dec 2018 22:21:03 +0900 Subject: [PATCH 1/5] Add Scoop Task is now available on Scoop for Windows users. https://github.com/lukesampson/scoop-extras/pull/1485 --- docs/README.md | 5 +++-- docs/installation.md | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 10d69bae..acb4a6a3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -28,8 +28,8 @@ guide to check the full schema documentation and Task features. ## Features - [Easy installation](installation.md): just download a single binary, add to - $PATH and you're done! Or you can also install using [Homebrew][homebrew] or - [Snapcraft][snapcraft] if you want; + $PATH and you're done! Or you can also install using [Homebrew][homebrew], + [Snapcraft][snapcraft], or [Scoop][scoop] if you want; - Available on CIs: by adding [this simple command](installation.md#install-script) to install on your CI script and you're done to use Task as part of your CI pipeline; - Truly cross-platform: while most build tools only work well on Linux or macOS, @@ -43,4 +43,5 @@ guide to check the full schema documentation and Task features. [yaml]: http://yaml.org/ [homebrew]: https://brew.sh/ [snapcraft]: https://snapcraft.io/ +[scoop]: https://scoop.sh/ [sh]: https://mvdan.cc/sh diff --git a/docs/installation.md b/docs/installation.md index 856f8f41..c036061e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -25,6 +25,16 @@ right: sudo snap install task ``` +## Scoop + +If you're on Windows and have [Scoop][scoop] installed, use `extras` bucket +to install Task like: + +```cmd +scoop bucket add extras +scoop install task +``` + ## Go Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which @@ -74,3 +84,4 @@ curl -s https://taskfile.org/install.sh | sh [installscript]: https://github.com/go-task/task/blob/master/install-task.sh [releases]: https://github.com/go-task/task/releases [godownloader]: https://github.com/goreleaser/godownloader +[scoop]: https://scoop.sh/ From 9f1bb9a42e56f120b15bded709dca0fa5a583a71 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 15 Dec 2018 16:14:39 -0200 Subject: [PATCH 2/5] Add CHANGELOG.md This was generated in a semi-automated way using the existing GitHub releases, fetch thought the GitHub API. --- CHANGELOG.md | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..81f58c84 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,139 @@ +# Changelog + +## v2.2.1 - 2018-12-09 + +- 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) + - 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 + - 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/master/docs) directory of this repository. Contributions to the documentation is really appreciated. + +## v2.1.1 - 2018-09-17 + +- 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) +- 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/master/TASKFILE_VERSIONS.md) document, since it describes in depth what changed for this version. + +* New Taskfile version 2 (https://github.com/go-task/task/issues/77) +* Possibility to have global variables in the `Taskfile.yml` instead of `Taskvars.yml` (https://github.com/go-task/task/issues/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 suport for multiline variables from sh (#64) +- Fixes env: remove square braces and evaluate shell (#62) +- Watch: change watch library and few fixes and improvements +- 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 +- 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. + - 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 +- 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 reconized 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 From 55a240c82e13a935a22fbc2b03eb978009fb370e Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 24 Dec 2018 14:39:53 -0200 Subject: [PATCH 3/5] Improve documentation on Scoop Updates #152 --- docs/installation.md | 3 +++ docs/releasing_task.md | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index c036061e..d7c65cd1 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -35,6 +35,9 @@ scoop bucket add extras scoop install task ``` +This installation method is community owned. After a new release of Task, it +may take some time until it's available on Scoop. + ## Go Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which diff --git a/docs/releasing_task.md b/docs/releasing_task.md index a3000adc..efd1a98a 100644 --- a/docs/releasing_task.md +++ b/docs/releasing_task.md @@ -24,6 +24,13 @@ the binaries: * Moving both `i386` and `amd64` new artifacts to the stable channel on the [Snapscraft dashboard][snapcraftdashboard] +# Scoop + +Scoop is a community owned installation method. Scoop owners usually take care +of updating versions there by editing +[this file](https://github.com/lukesampson/scoop-extras/blob/master/task.json). +If you think its Task version is outdated, open an issue to let us know. + [goreleaser]: https://goreleaser.com/#continuous_integration [homebrewtap]: https://github.com/go-task/homebrew-tap [gotaskrb]: https://github.com/go-task/homebrew-tap/blob/master/Formula/go-task.rb From a928ab75e337d673b26d8166618500667511f795 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 24 Dec 2018 15:00:14 -0200 Subject: [PATCH 4/5] Docs: Give more visibility to sponsors and contributors --- README.md | 18 ++++++++++++++---- docs/README.md | 12 ++++++++++++ docs/_sidebar.md | 1 - docs/sponsors_and_backers.md | 16 ---------------- 4 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 docs/sponsors_and_backers.md diff --git a/README.md b/README.md index 8e01e183..7501d214 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,20 @@ # Task Task is a task runner / build tool that aims to be simpler and easier to use -than, for example, [GNU Make][make]. - ---- +than, for example, [GNU Make](https://www.gnu.org/software/make/). See [taskfile.org](https://taskfile.org) for documentation. -[make]: https://www.gnu.org/software/make/ +--- + +## Sponsors + +[![Sponsors](https://opencollective.com/task/sponsors.svg?width=890)](https://opencollective.com/task) + +## Backers + +[![Backers](https://opencollective.com/task/backers.svg?width=890)](https://opencollective.com/task) + +## Contributors + +[![Contributors](https://opencollective.com/task/contributors.svg?width=890)](https://github.com/go-task/task/graphs/contributors) diff --git a/docs/README.md b/docs/README.md index acb4a6a3..99864e9f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -38,6 +38,18 @@ guide to check the full schema documentation and Task features. if a given set of files haven't changed since last run (based either on its timestamp or content). +## Sponsors + +[![Sponsors](https://opencollective.com/task/sponsors.svg?width=890)](https://opencollective.com/task) + +## Backers + +[![Backers](https://opencollective.com/task/backers.svg?width=890)](https://opencollective.com/task) + +## Contributors + +[![Contributors](https://opencollective.com/task/contributors.svg?width=890)](https://github.com/go-task/task/graphs/contributors) + [make]: https://www.gnu.org/software/make/ [go]: https://golang.org/ [yaml]: http://yaml.org/ diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 86ad0ac9..2427a1f1 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -4,5 +4,4 @@ - [Examples](examples.md) - [Releasing Task](releasing_task.md) - [Alternative Task Runners](alternative_task_runners.md) -- [Sponsors and Backers](sponsors_and_backers.md) - [![Github](https://icongram.jgog.in/simple/github.svg?color=808080&size=16)Github](https://github.com/go-task/task) diff --git a/docs/sponsors_and_backers.md b/docs/sponsors_and_backers.md deleted file mode 100644 index 6452b789..00000000 --- a/docs/sponsors_and_backers.md +++ /dev/null @@ -1,16 +0,0 @@ -# Sponsors and Backers - -## Sponsors - -[![Sponsors](https://opencollective.com/task/sponsors.svg?width=890)][opencollective] - -## Backers - -[![Backers](https://opencollective.com/task/backers.svg?width=890)][opencollective] - -## Contributors - -[![Contributors](https://opencollective.com/task/contributors.svg?width=890)][contributors] - -[opencollective]: https://opencollective.com/task -[contributors]: https://github.com/go-task/task/graphs/contributors From 11d257cb2669ae5f9b0469928aed8b32d6dbf15b Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 24 Dec 2018 15:03:30 -0200 Subject: [PATCH 5/5] Changelog: Mention Scoop --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f58c84..aa07aeee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +- On Windows, Task can now be installed using [Scoop](https://scoop.sh/) + ([#152](https://github.com/go-task/task/pull/152)). + ## v2.2.1 - 2018-12-09 - This repository now uses Go Modules (#143). We'll still keep the `vendor` directory in sync for some time, though;