denoland / dotland

[Archived] deno.land website
https://deno.land
MIT License
957 stars 626 forks source link

Deno third party module not callable under certain circumstances #2091

Closed piuswalter closed 1 year ago

piuswalter commented 2 years ago

Hello all,

we found some interesting bug while publishing a new third party module for Deno. After publishing the module we try to call it the deno.land standard way with https://deno.land/x/<module name>. So if we call lodash (https://deno.land/x/lodash) this way, we get the module page. If we call our new module svelte_tailwind_widgets (https://deno.land/x/svelte_tailwind_widgets) this way, we get an error page.

Now the curious part begins. If we call our module with an ending slash (https://deno.land/x/svelte_tailwind_widgets/) or with an given version (https://deno.land/x/svelte_tailwind_widgets@v1.0.0) we can reach it without any error message. How is that possible?

The problem is that if we search for our module, then the broken link is used to navigate us to the error page.

crowlKats commented 2 years ago

I tried to reproduce, but for me all links just work, even the result from /x/ for said module name. What exact error are you getting?

piuswalter commented 2 years ago

Thank you for the fast response! If I try calling https://deno.land/x/svelte_tailwind_widgets, I get the following error message:

No uploaded versions
This module name has been reserved for a repository, but no versions have been uploaded yet. Modules that do not upload a version within 30 days of registration will be removed. 
crowlKats commented 2 years ago

Oh, I see. It seems this is our stupid caching kicking in; this has been getting quite out of hand recently, we need to address this quickly.

crowlKats commented 1 year ago

Closing as things have changes and should be better now.