-
Notifications
You must be signed in to change notification settings - Fork 293
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
Resolve symbolic links for app dir #165
Conversation
@jromero Apologies, we basically did a wholesale rewrite of build as part of our effort to move all the major commands onto the |
Signed-off-by: Javier Romero <j.romero.1214@gmail.com>
build_test.go
Outdated
relLink := filepath.Join("testdata", "some-app.link") | ||
|
||
_ = os.Remove(relLink) | ||
h.AssertNil(t, os.Symlink(relLinkRef, relLink)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are going to make temporary file for testing we should make them in a temp dir instead of in the repo. We generally only use the testdata dir if we are going to commit the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full disclosure: I did feel a tad dirty doing it this way.
I initially attempted to follow the prior practice of using fixtures but when it came time to submit the PR I remembered that git doesn't play nice with symlinks. I obviously should have choose a different path. Thanks for the redirection. Hope it's better now.
Signed-off-by: Javier Romero <j.romero.1214@gmail.com>
@jromero thanks for the contribution! |
Resolves #93
Signed-off-by: Javier Romero j.romero.1214@gmail.com