Skip to content

fix: wrong working directory with USER_WORKING_DIR in included Taskfi…#1274

Closed
andarto wants to merge 1 commit into
go-task:mainfrom
andarto:fix-1250
Closed

fix: wrong working directory with USER_WORKING_DIR in included Taskfi…#1274
andarto wants to merge 1 commit into
go-task:mainfrom
andarto:fix-1250

Conversation

@andarto

@andarto andarto commented Jul 21, 2023

Copy link
Copy Markdown

…les (#1250)

When using dir: '{{.USER_WORKING_DIR}}' in an included task, the working directory was set incorrectly by concatenating the base Taskfile directory and the USER_WORKING_DIR.

#1205 might be the same problem and is possibly fixed too, but I haven't tested the patch on Windows.

Also, while this patch fixes the symptom, there a better place to implement the fix would be where the USER_WORKING_DIR gets concatenated in the first place, but I wasn't able the find that in the time a had available. At least this patch and the included test case should point you in the right direction.

…les (go-task#1250)

When using `dir: '{{.USER_WORKING_DIR}}'` in an included task, the working
directory was set incorrectly by concatenating the base Taskfile directory
and the USER_WORKING_DIR.
andreynering added a commit that referenced this pull request Aug 18, 2023
andreynering added a commit that referenced this pull request Aug 18, 2023
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309

Co-authored-by: Marcus Spading <ms@fragmentum.net>
@andreynering andreynering added the area: variables Changes related to variables. label Aug 18, 2023
@andreynering

Copy link
Copy Markdown
Member

Hi @andarto,

Thanks for your contribution!

I have done changes to this fix and opened #1309, so I'm closing this one.

andreynering added a commit that referenced this pull request Aug 26, 2023
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312

Co-authored-by: Marcus Spading <ms@fragmentum.net>
andreynering added a commit that referenced this pull request Aug 26, 2023
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312

Co-authored-by: Marcus Spading <ms@fragmentum.net>
andreynering added a commit that referenced this pull request Aug 26, 2023
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312

Co-authored-by: Marcus Spading <ms@fragmentum.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: variables Changes related to variables.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants