-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: support extending the default luarocks config #452
Conversation
Review ChecklistDoes this PR follow the Contribution Guidelines? Following is a partial checklist: Proper conventional commit scoping:
If applicable:
|
a477b45
to
1e258d8
Compare
unrelated to this PR but I noticed some redundancy between lua/rocks/config/init.lua and lua/rocks/config/internal.lua RocksOpts and RocksConfig : aren't these the same ? can we do something about the doc redundancy ? |
1e258d8
to
fba7170
Compare
It's a bit of boilerplate, but worth it imo. |
I've made writing/loading the luarocks config async + on demand. That ought to minimise the impact on startup time. |
5c78881
to
b524d3b
Compare
I dont know what to think here. The If it's a string, then we just load the file without merging. Also it's user-facing so if it ends being a bad idea, it's hard to rewind. One of the problems is that our luarocks config depends on If I take the nix scenario, I can generate the variables/rockspecs and pass it as |
b524d3b
to
fe5e7da
Compare
The string is to prevent this from being a breaking change. Edit: Added a deprecation notice as discussed. |
f8833c4
to
a56c9ed
Compare
a56c9ed
to
25bbb2b
Compare
25bbb2b
to
034c112
Compare
How on earth did the integration tests get flaky again after a rebase? |
00393ec
to
38f8dad
Compare
38f8dad
to
27563a6
Compare
Merging, as tests are succeeding and all issues have been addressed. |
Stacked on #442
This adds a solution for #443 by making it easier to defend the default luarocks config.
You can add extra directories to search for binaries via
See https://github.com/luarocks/luarocks/wiki/Config-file-format for details.