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

fix(core): use config.git.url_format to build the url for lazy.nvim. Fixes #791 #792

Merged
merged 1 commit into from
May 10, 2023

Conversation

gongfarmer
Copy link
Contributor

@gongfarmer gongfarmer commented May 10, 2023

Construct the lazy.nvim package's url string using the configured git.url_format.

Tested in normal configuration with access to GitHub, and in firewalled situation without GitHub access.

@@ -375,7 +375,9 @@ function M.load()
-- load specs
Util.track("spec")
Config.spec = Spec.new()
Config.spec:parse({ vim.deepcopy(Config.options.spec), { url = "https://github.com/folke/lazy.nvim.git" } })
Config.spec:parse(
Copy link
Owner

Choose a reason for hiding this comment

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

Since we're changing it anyway, just make it a regular spec, so:

  Config.spec:parse({ vim.deepcopy(Config.options.spec), { "folke/lazy.nvim" } })

Should still work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense.
Updated and retested.

@folke folke linked an issue May 10, 2023 that may be closed by this pull request
3 tasks
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.

bug: lazy ignores the configured opts.git.url_format when self-updating
2 participants