Closed s1n7ax closed 4 weeks ago
This might be a delay in github release cache? Because, after few minutes this got fixed without any changes.
Reopening. Even though https://github.com/USER/PROJECT/releases/latest
navigates me to the latest release in the browser when mason.nvim force refreshed, it downloads an older version of mason registry from github. It still might be the cache from github but just opening this to make sure you are using USER/PROJECT/releases/latest
to get the newest registry from releases.
Yet another release, same behavior. Even when /releases/latest
redirects me to the latest release correctly, mason nvim still fetching an older version even when I manually remove the entire ~/.local/share/nvim/mason/registries
directory.
It took exactly 30 minutes for new changes to show up. Looks like some caching mechanism to me?
Hey so this was due to how caching was configured in the API service. Only mason-org/mason-registry had low cache expirations while other repositories defaulted to 30 minute expiration. This should be fixed via https://github.com/mason-org/mason-registry-api/pull/158.
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
I'm managing https://github.com/nvim-java/mason-registry repository for releasing java related packages. I use fork of this (s1n7ax/mason-registry) to test out changes before releasing. However, I have noticed when there are multiple release on the same day, It always downloads the older release. In following example I have v1.0.0 being picked. Even if I had lets say two automatic releases on the same day, it picks the older version.
I tried deleting the downloaded registry from
/home/s1n7ax/.local/share/nvim/mason/registries/github/s1n7ax/mason-registry
Expected behavior
Get the latest release version from the registry releases
Steps to reproduce
Neovim version (>= 0.7)
NVIM v0.10.0-dev-df1795c Build type: Release LuaJIT 2.1.1693350652
Operating system/version
Linux s1n7ax 6.1.77 #1-NixOS SMP PREEMPT_DYNAMIC Mon Feb 5 20:13:03 UTC 2024 x86_64 GNU/Linux
Healthcheck output
Screenshots
No response