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

Don't exit if $GOPATH/src is a symlink #16

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

gabeguz
Copy link

@gabeguz gabeguz commented Oct 11, 2018

EvalSymlinks() before comparing the pwd with $GOPATH/src so that in
the case where $GOPATH/src is a symbolic link (to a case sensitive
filesystem on a mac for instance) the kit command will still execute
successfully.

I'm not sure if this is too much of an edge case to handle in the code or not, but on my particular setup $GOPATH/src is a symlink to Volumes/src, which is a case-sensitive volume on my mac. The reason for this is so that I don't have to worry about issues related to case insensitivity on the standard HFS+ volume.

In theory, I could mitigate this issue by moving all of $GOPATH to /Volumes/src w/out having to change the code.

Let me know what you think, and if this change is appropriate or not.

EvalSymlinks() before comparing the `pwd` with $GOPATH/src so that in
the case where $GOPATH/src is a symbolic link (to a case sensitive
filesystem on a mac for instance) the `kit` command will still execute
successfully.
@kujtimiihoxha
Copy link
Owner

@gabeguz This PR looks fine, I have not thought of a use case like this. Adding this is totally fine since it does not change the behavior.

@kujtimiihoxha kujtimiihoxha merged commit 543fc76 into kujtimiihoxha:master Apr 1, 2019
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