Skip to content

Commit 1c35358

Browse files
committed
v3.43.3
1 parent 13daa6d commit 1c35358

File tree

9 files changed

+41
-27
lines changed

9 files changed

+41
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## v3.43.3 - 2025-04-27
44

55
Reverted the changes made in #2113 and #2186 that affected the
66
`USER_WORKING_DIR` and built-in variables. This fixes #2206, #2195, #2207 and

internal/version/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.43.2
1+
3.43.3

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@go-task/cli",
3-
"version": "3.43.2",
3+
"version": "3.43.3",
44
"description": "A task runner / simpler Make alternative written in Go",
55
"scripts": {
66
"postinstall": "go-npm install",

website/docs/changelog.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_position: 14
55

66
# Changelog
77

8+
## v3.43.3 - 2025-04-27
9+
10+
Reverted the changes made in #2113 and #2186 that affected the
11+
`USER_WORKING_DIR` and built-in variables. This fixes #2206, #2195, #2207 and
12+
#2208.
13+
814
## v3.43.2 - 2025-04-21
915

1016
- Fixed regresion of `CLI_ARGS` being exposed as the wrong type (#2190, #2191 by

website/versioned_docs/version-latest/changelog.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_position: 14
55

66
# Changelog
77

8+
## v3.43.3 - 2025-04-27
9+
10+
Reverted the changes made in #2113 and #2186 that affected the
11+
`USER_WORKING_DIR` and built-in variables. This fixes #2206, #2195, #2207 and
12+
#2208.
13+
814
## v3.43.2 - 2025-04-21
915

1016
- Fixed regresion of `CLI_ARGS` being exposed as the wrong type (#2190, #2191 by

website/versioned_docs/version-latest/contributing.mdx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ Studio Code][vscode-task].
4343
## 2. Making changes
4444

4545
- **Code style** - Try to maintain the existing code style where possible. Go
46-
code should be formatted by [`gofumpt`][gofumpt] and linted using
47-
[`golangci-lint`][golangci-lint]. Any Markdown or TypeScript files should be
48-
formatted and linted by [Prettier][prettier]. This style is enforced by our CI
49-
to ensure that we have a consistent style across the project. You can use the
50-
`task lint` command to lint the code locally and the `task lint:fix` command
51-
to automatically fix any issues that are found.
46+
code should be formatted and linted by [`golangci-lint`][golangci-lint]. This
47+
wraps the [`gofumpt`][gofumpt] and [`gci`][gci] formatters and a number of
48+
linters. We recommend that you take a look at the [golangci-lint
49+
docs][golangci-lint-docs] for a guide on how to setup your editor to
50+
auto-format your code. Any Markdown or TypeScript files should be formatted
51+
and linted by [Prettier][prettier]. This style is enforced by our CI to ensure
52+
that we have a consistent style across the project. You can use the `task
53+
lint` command to lint the code locally and the `task lint:fix` command to try
54+
to automatically fix any issues that are found. You can also use the `task
55+
fmt` command to auto-format the files if your editor doesn't do it for you.
5256
- **Documentation** - Ensure that you add/update any relevant documentation. See
5357
the [updating documentation](#updating-documentation) section below.
5458
- **Tests** - Ensure that you add/update any relevant tests and that all tests
@@ -73,8 +77,9 @@ install the extension.
7377
Task uses [Docusaurus][docusaurus] to host a documentation server. The code for
7478
this is located in the core Task repository. This can be setup and run locally
7579
by using `task website` (requires `nodejs` & `yarn`). All content is written in
76-
Markdown and is located in the `website/docs` directory. All Markdown documents
77-
should have an 80 character line wrap limit (enforced by Prettier).
80+
[MDX][mdx] (an extension of Markdown) and is located in the `website/docs`
81+
directory. All Markdown documents should have an 80 character line wrap limit
82+
(enforced by Prettier).
7883

7984
When making a change, consider whether a change to the [Usage Guide](/usage) is
8085
necessary. This document contains descriptions and examples of how to use Task
@@ -154,7 +159,9 @@ If you have questions, feel free to ask them in the `#help` forum channel on our
154159
[vscode-task]: https://github.com/go-task/vscode-task
155160
[go]: https://go.dev
156161
[gofumpt]: https://github.com/mvdan/gofumpt
162+
[gci]: https://github.com/daixiang0/gci
157163
[golangci-lint]: https://golangci-lint.run
164+
[golangci-lint-docs]: https://golangci-lint.run/welcome/integrations/
158165
[prettier]: https://prettier.io
159166
[nodejs]: https://nodejs.org/en/
160167
[yarn]: https://yarnpkg.com/
@@ -166,4 +173,5 @@ If you have questions, feel free to ask them in the `#help` forum channel on our
166173
[discord-server]: https://discord.gg/6TY36E39UK
167174
[discussion]: https://github.com/go-task/task/discussions
168175
[conventional-commits]: https://www.conventionalcommits.org
176+
[mdx]: https://mdxjs.com/
169177
{/* prettier-ignore-end */}

website/versioned_docs/version-latest/reference/templating.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ special variable will be overridden.
115115
| `TASKFILE` | The absolute path of the included Taskfile. |
116116
| `TASKFILE_DIR` | The absolute path of the included Taskfile directory. |
117117
| `TASK_DIR` | The absolute path of the directory where the task is executed. |
118-
| `USER_WORKING_DIR` | The absolute path of the directory `task` was called from, or the value of `--dir` (`-d`) if given. |
118+
| `USER_WORKING_DIR` | The absolute path of the directory `task` was called from. |
119119
| `CHECKSUM` | The checksum of the files listed in `sources`. Only available within the `status` prop and if method is set to `checksum`. |
120120
| `TIMESTAMP` | The date object of the greatest timestamp of the files listed in `sources`. Only available within the `status` prop and if method is set to `timestamp`. |
121121
| `TASK_VERSION` | The current version of task. |

website/versioned_docs/version-latest/usage.mdx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ In this example, we can run `cd <service>` and `task up` and as long as the
6161
`<service>` directory contains a `docker-compose.yml`, the Docker composition
6262
will be brought up.
6363

64-
:::info
65-
66-
`.USER_WORKING_DIR` will contain the value of the `--dir` (`-d`) flag, if given.
67-
68-
:::
69-
7064
### Running a global Taskfile
7165

7266
If you call Task with the `--global` (alias `-g`) flag, it will look for your
@@ -1122,14 +1116,14 @@ tasks:
11221116
MAP:
11231117
map: {A: 1, B: 2, C: 3}
11241118
cmds:
1125-
- 'echo {{.STRING}}' # Hello, World!
1126-
- 'echo {{.BOOL}}' # true
1127-
- 'echo {{.INT}}' # 42
1128-
- 'echo {{.FLOAT}}' # 3.14
1129-
- 'echo {{.ARRAY}}' # [1 2 3]
1130-
- 'echo {{.ARRAY.0}}' # 1
1131-
- 'echo {{.MAP}}' # map[A:1 B:2 C:3]
1132-
- 'echo {{.MAP.A}}' # 1
1119+
- 'echo {{.STRING}}' # Hello, World!
1120+
- 'echo {{.BOOL}}' # true
1121+
- 'echo {{.INT}}' # 42
1122+
- 'echo {{.FLOAT}}' # 3.14
1123+
- 'echo {{.ARRAY}}' # [1 2 3]
1124+
- 'echo {{index .ARRAY 0}}' # 1
1125+
- 'echo {{.MAP}}' # map[A:1 B:2 C:3]
1126+
- 'echo {{.MAP.A}}' # 1
11331127
```
11341128

11351129
Variables can be set in many places in a Taskfile. When executing

0 commit comments

Comments
 (0)