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

Export the Path variable rather than appending to it #12

Merged
merged 1 commit into from
Oct 24, 2021

Conversation

compnerd
Copy link
Contributor

The addPath will invert the path ordering as each entry is appended to the
environment file, which is then reversed and prepended to the environment at the
end of the action. This results in the additions being in reverse order.
However, since we know that vsdevcmd will adjust the path on both ends, simply
prefer to use the exportVariable rather than try to be clever to adjust the
path via addPath.

Fixes: #10.

The `addPath` will invert the path ordering as each entry is appended to the
environment file, which is then reversed and prepended to the environment at the
end of the action.  This results in the additions being in reverse order.
However, since we know that `vsdevcmd` will adjust the path on both ends, simply
prefer to use the `exportVariable` rather than try to be clever to adjust the
path via `addPath`.

Fixes: seanmiddleditch#10.
@seanmiddleditch seanmiddleditch self-requested a review October 24, 2021 17:16
@seanmiddleditch seanmiddleditch merged commit 7665a85 into seanmiddleditch:master Oct 24, 2021
@compnerd compnerd deleted the path-management branch October 24, 2021 17:29
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.

PATH order is not correct
2 participants