version-fox / vfox-elixir

Elixir vfox plugin. Use the vfox to manage multiple Elixir versions in Linux/Darwin MacOS/Windows. all platform~
Apache License 2.0
7 stars 1 forks source link

1.17 update in CDN but not in search #9

Closed pertsevds closed 2 months ago

pertsevds commented 2 months ago

1.17.1 and 1.17.0 is in https://fastly.jsdelivr.net/gh/version-fox/vfox-elixir@main/assets/versions.txt right now

curl https://fastly.jsdelivr.net/gh/version-fox/vfox-elixir@main/assets/versions.txt | grep 1.17
1.17.1
1.17.0
1.17.0-rc.1
1.17.0-rc.0

but when I clean cache and try to install 1.17.1

rm ~/.version-fox/plugin/elixir/available.cache
vfox search elixir

It only prints v1.17.0-rc.1 and v1.17.0-rc.0.

MacOS 14.5, vfox 0.5.3

Are there any other cache or am I missing something?

yeshan333 commented 2 months ago

I can not reproduce this problem.

image

version.txt was automatically updated at 13 hours ago in this commit:https://github.com/version-fox/vfox-elixir/commit/9f13845f1bcfc34ec4f930634cb6c85e5bb7abe5#diff-28a66ebb5faf4f27eb38150c6db0ad99d92e84f53a9137e6037cef9fa7b99b6f

when I delete the vfox cache rm ~/.version-fox/plugin/elixir/available.cache. I can normally found the v.17.0 & v1.17.1 version of Elixir.

yeshan333 commented 2 months ago

If you cannot find the version you want to install using vfox search, the plug-in implementation also supports installing any version that appears in the https://github.com/elixir-lang/elixir/releases page.

pertsevds commented 2 months ago

Now it's fixed. It's in the search.

version.txt was automatically updated at 13 hours ago

In HTTP headers from https://fastly.jsdelivr.net/gh/version-fox/vfox-elixir@main/assets/versions.txt

Cache-Control: public, max-age=604800, s-maxage=43200

s-maxage = 12 hours. That may be the reason. 12 hours passed and CDN cache refreshed.

pertsevds commented 2 months ago

I'll close the issue for now.