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

cmd/go: make sure that the RelPaths always returns valid paths #30533

Closed
wants to merge 1 commit into from

Conversation

zegl
Copy link
Contributor

@zegl zegl commented Mar 2, 2019

When dealing with symlinks, filepath.Rel does not always return a valid path
as described in #30336

This change makes sure that the shorter path is not used if it isn't valid.

Fixes #30336

When dealing with symlinks, filepath.Rel does not always return a valid path
as described in golang#30336

This change makes sure that the shorter path is not used if it isn't valid.

Fixes golang#30336
@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Mar 2, 2019
@gopherbot
Copy link
Contributor

This PR (HEAD: fb6bfa4) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/164957 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Bryan C. Mills:

Patch Set 1: Code-Review-1

If filepath.Rel returns a nil error, the resulting path should always be valid.
If it is not, that's a bug in filepath.Rel, not something to work around within cmd/go.


Please don’t reply on this GitHub thread. Visit golang.org/cl/164957.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR is being closed because golang.org/cl/164957 has been abandoned.

Underlying problem needs more investigation.

@gopherbot gopherbot closed this Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmd/go: go fmt doesn't work in symlinked directory
3 participants