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(luarocks): try to install from root manifest #1687

Merged
merged 1 commit into from
Aug 31, 2024
Merged

Conversation

mrcjkb
Copy link
Contributor

@mrcjkb mrcjkb commented Jul 28, 2024

Description

When passing the --dev flag to luarocks, it will prioritise dev versions when resolving dependencies (treating dev or scm as greater than a SemVer version) if the rockspec doesn't specify an upper version constraint (which is often the case).

Dev packages are often unstable and may cause more problems, especially for Windows users (an example I've seen is git for windows trying and failing to checkout submodules).

For now , a good compromise between too many retries and not retrying at all could be to try luarocks install from the root manifest first, but to keep the --dev flag in luarocks make.

If that still causes problems, it might be better to fall back to luarocks make without --dev first, and then to try luarocks ---dev make as a last resort.
In rocks.nvim, we only fall back to adding the --dev flag if the install error message contains the string "No results matching query were found"; assuming that stable non-dev packages shouldn't depend on dev packages.

Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Aug 27, 2024
@mrcjkb
Copy link
Contributor Author

mrcjkb commented Aug 27, 2024

not stale

@github-actions github-actions bot removed the stale label Aug 28, 2024
@folke folke merged commit 591ef40 into folke:main Aug 31, 2024
9 checks passed
@folke
Copy link
Owner

folke commented Aug 31, 2024

ty!

folke pushed a commit that referenced this pull request Nov 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[11.14.2](v11.14.1...v11.14.2)
(2024-11-10)


### Bug Fixes

* **bootstrap:** single forward slash. Fixes
[#1747](#1747)
([aca30f6](aca30f6))
* **completion:** check if command string is a prefix of Lazy
([#1760](#1760))
([e9fd76e](e9fd76e)),
closes [#1758](#1758)
* **docs:** always update helptags for local plugins
([60cf258](60cf258))
* **luarocks:** try to install from root manifest
([#1687](#1687))
([591ef40](591ef40))
* **rocks:** add lib64 plugin directory to package.cpath
([#1717](#1717))
([80da254](80da254))
* **rockspec:** allow binary lua files. Fixes
[#1800](#1800)
([408449a](408449a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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