-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support Package.swift symlink? #34
Comments
@honghaoz what is the error you are getting? |
Hey @tanner0101 here is the error log:
|
I don't know much about Heroku buildpacks, but my guess is the problem is here: https://github.com/vapor-community/heroku-buildpack/blob/master/bin/detect#L4 Seems like we need to expand that check to support symlinks. Maybe this will help: https://stackoverflow.com/questions/5767062/how-to-check-if-a-symlink-exists |
@tanner0101 Yes, I suspect that check doesn't support symlinks. I will do a fork and test with it. If it works, I could put a PR for it. |
I found this error was caused by the symlink's absolute path of the source file. This was the bad symlink:
After I changed the symlink to
The buildpack works well. Credit to this post: https://www.mokacoding.com/blog/symliks-in-git/ |
Currently, I use a "Package.swift" symbolic link at the root directory instead of a real file. The build pack doesn't handle the symlink case.
Could we support it? Thanks.
The text was updated successfully, but these errors were encountered: