-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Move vendored shards to "src/compiler/vendor/" #13784
Comments
I symphasize with the idea to make using compiler code for third party tools easier. This change is relatively simple. But I'm not convinced it's a good idea. The purpose of the I think it's better for this project to keep depencies in a separate There are other options to improve the usability of compiler code for third party tools. |
I think that's a good idea. I have a few concerns about switching back to #13040:
|
|
That would work. I'd just be concerned about conflicts between the version crystal's known to work with and the version they set in their shards.yml, but that isn't that big of a problem. Should I open a PR reverting the reverting commit? |
…al-lang#13040)" (crystal-lang#13315)" (crystal-lang#13784) This reverts commit 469b5b2.
Feature Request
This is related to #13040
On Arch Linux, the
lib/
folder is not included in the distribution of the compiler, meaning parts of the compiler can't be re-used when writing programs (such as the parser, etc). The distribution could include this lib folder, but it would be in a very weird place. As an alternative to the current layout, I would like to propose moving the vendored shards to "src/compiler/vendor/", that way instead of requiring like:The compiler would instead require:
And all the source code for the compiler would be packaged and integrated. This would make writing scripts that use the compiler itself easier. This shouldn't break backwards compatibility, and should avoid the issue previously ran into with overriding packages projects have specified in their shards.yml.
The text was updated successfully, but these errors were encountered: