Skip to content
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

fix: add /D argument for cd to trigger drive change when changing directory #53

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

holyslon
Copy link
Contributor

@holyslon holyslon commented Jan 9, 2024

When gradle plugin runs run_build_tool.cmd it passes to script env variable %CARGOKIT_TOOL_TEMP_DIR%. Then script make cd to dir that passed inside this variable. But if this variable points to directory that located on different drive than working directory for script, cd will not work. For it to work we need to pass /D parameter to cd. I made this change localy and it helps. Right now line 11 in local my script looks like:

cd /D "%CARGOKIT_TOOL_TEMP_DIR%"

and it works.

This is PR that fix this issue.

PS:
my inital issue

@knopp knopp changed the title Add /D for cd so it change windows drive when we change directory fix: add /D argument for cd to trigger drive change when changing directory Jan 9, 2024
@knopp knopp merged commit c6d46d4 into irondash:main Jan 10, 2024
10 checks passed
@holyslon holyslon deleted the fix-windows-build-script branch January 11, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants