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

Fixed issue #5014 (Missing Pulumi console tags on Windows) #5406

Merged
merged 4 commits into from
Sep 25, 2020

Conversation

jetvova
Copy link
Contributor

@jetvova jetvova commented Sep 18, 2020

The existing path.Join(gitRoot, "..") function appears to have unexpected behavior on Windows. Instead of appending .. and returning gitRoot's parent directory, it replaces the whole string with a single dot. The fix changes the code to instead use filepath.Dir(gitRoot), which correctly returns the parent directory.

This seems to be the only instance in which path.Join() is used with .. in the entire repository. There are some usages of a function called filepath.Join() with dots, but they work correctly.

Fixes #5014

The existing `path.Join(gitRoot, "..")` function appears to have unexpected behavior on Windows. Instead of appending `..` and returning gitRoot's parent directory,
it replaces the whole string with a single dot. The fix changes the code to instead use `filepath.Dir(gitRoot)`, which correctly returns the parent directory.

This seems to be the only instance in which `path.Join()` is used with `..` in the entire repository. There are some usages of a function called `filepath.Join()`
with dots, but they work correctly.
@justinvp justinvp added impact/no-changelog-required This issue doesn't require a CHANGELOG update and removed impact/no-changelog-required This issue doesn't require a CHANGELOG update labels Sep 18, 2020
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Want to add a note to CHANGELOG.md?

Also, for future reference, if you add a Fixes #<insert issue number> anywhere in the PR description, the issue will automatically be closed when the PR is merged. (I went ahead and edited it to do that.)

@stack72 stack72 merged commit b4c2a35 into master Sep 25, 2020
@stack72 stack72 deleted the vova/issue5014 branch September 25, 2020 14:04
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.

Pulumi cli on Windows does not include all vcs and Github tags to Pulumi console
3 participants