Skip to content

Comments

fix: mason registry verification fails#405

Merged
s1n7ax merged 2 commits intonvim-java:mainfrom
logrusx:fix-startup-checks
Aug 4, 2025
Merged

fix: mason registry verification fails#405
s1n7ax merged 2 commits intonvim-java:mainfrom
logrusx:fix-startup-checks

Conversation

@logrusx
Copy link
Contributor

@logrusx logrusx commented Aug 3, 2025

TLDR;

What this PR does is:

  1. In module java.startup.mason-dep: extracts the code responsible for adding custom registries to Mason from install into a separate function add_custom_registries.

  2. In module java: calls mason-dep.add_custom_registries prior to startup_check in setup


Longer explanation:

Pt. 1 is necessary because startup_check needs to be called before mason-dep.install in java.setup but also mason-dep.install was adding the registries, so the verification was always going to fail. It allows for mason-dep.add_custom_registries to be called independently.

Pt. 2 is necessary because custom registries need to be added before the invalid registry verification for it to succeed.

fixes #403

@logrusx logrusx mentioned this pull request Aug 3, 2025
1 task
@s1n7ax s1n7ax merged commit 4fd68c4 into nvim-java:main Aug 4, 2025
4 checks passed
@logrusx logrusx deleted the fix-startup-checks branch August 6, 2025 10:17
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: mason registry verification fails

2 participants