New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USER_WORKING_DIR is concatenating "C:/" to the path in Windows #1205
Labels
area: variables
Changes related to variables.
os: windows
Issues that affect users on Windows.
type: bug
Something not working as intended.
Comments
andreynering
added
type: bug
Something not working as intended.
os: windows
Issues that affect users on Windows.
and removed
state: needs triage
Waiting to be triaged by a maintainer.
labels
Jun 17, 2023
This is a curious bug, indeed. The problem may be on mvdan/sh or somewhere on our code. |
andreynering
added a commit
that referenced
this issue
Aug 18, 2023
andreynering
added a commit
that referenced
this issue
Aug 18, 2023
andreynering
added a commit
that referenced
this issue
Aug 26, 2023
andreynering
added a commit
that referenced
this issue
Aug 26, 2023
andreynering
added a commit
that referenced
this issue
Aug 26, 2023
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.
os: windows
Issues that affect users on Windows.
type: bug
Something not working as intended.
Hi,
I'm using a main Taskfile which includes a vagrant_taskfile.yml.
I've experienced this concatenating issue with
{{.USER_WORKKING_DIR}}
before in Linux and solved it using this config:This works perfectly OK in Linux. However in Windows 10 Pro Powershell it fails:
C:\
at the beginning of the execution path. This is the problem.No matter how I play with the hierarchy path
../../
, those parent dirs will be removed, but thatC:\
will remain attached to the path, so the command wont work. Not to mention that if I only use{{.USER_WORKING_DIR}}
it will concatenate the main and current context paths together ending with the old problem.Here you can see both paths got concatenated. As mentioned in the beginning, this can be solved usign
dir: "../../../{{.USER_WORKING_DIR}}"
in Linux.Any suggestions to fix this in Windows?
PS: All other commands that don't require .USER_WORKING_DIR work like a charm in windows so far.
Thank you very much.
The text was updated successfully, but these errors were encountered: