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

feat(log): trace luarocks_config path #450

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

teto
Copy link
Member

@teto teto commented Jul 2, 2024

To help debug/diagnose if config is correctly set. It can be deceiving in case vim.g.rocks_nvim gets changed later.

Which is why at first I thought of passing the luarocks config via the command line instead of the environment but luarocks still doesn't support it: luarocks/luarocks#1086

This looks like a good compromise.

plugin/rocks.lua Outdated
@@ -18,6 +18,7 @@ end

local log = require("rocks.log")
log.info(vim.uv.os_uname())
log.info("Using luarocks config " .. (vim.g.rocks_nvim.luarocks_config or "unset"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: we should get the luarocks config from the config module (see L27)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha yes ty. I noticed that after the initial implementation and forgot to correct it. The CI error looks unrelated

To help debug/diagnose if config is correctly set.
It can be deceiving in case vim.g.rocks_nvim gets changed later.

Which is why at first I thought of passing the luarocks config via the
command line instead of the environment but luarocks still doesn't
support it: luarocks/luarocks#1086

This looks like a good compromise.
@teto teto force-pushed the teto/log-more branch from 49a09b8 to 86c94b8 Compare July 3, 2024 10:11
@mrcjkb mrcjkb enabled auto-merge (squash) July 3, 2024 10:53
@mrcjkb mrcjkb merged commit c3b0297 into nvim-neorocks:master Jul 3, 2024
7 checks passed
@teto teto deleted the teto/log-more branch July 3, 2024 13:03
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