Language logos for icons merged to Devicon but not yet released don't show
What happened
Language logos are served from Devicon through jsDelivr using an unversioned URL (CDN_BASE in lib/github/languages.ts):
https://cdn.jsdelivr.net/gh/devicons/devicon/icons/<dir>/<id>.svg
An unversioned jsDelivr GitHub URL resolves to Devicon's latest tagged release (v2.17.0 at the time of writing). So a language only gets a logo once its icon is in a Devicon release. If an icon has been merged to Devicon's develop branch but not released, LANGUAGE_SLUGS can map to it, but the generated URL 404s and the card shows no logo.
This isn't specific to one language. It affects any language whose icon is merged upstream but unreleased. Devicon releases are infrequent, so there can be a long gap between an icon being accepted and gitfut being able to show it.
Concrete example: Verilog and SystemVerilog icons were merged to Devicon develop and are not in a release yet. Mapping verilog and systemverilog to verilog-original and systemverilog-original is not enough, because the default URL doesn't exist in the latest release.
(Languages Devicon has no icon for at all, such as Assembly or Ada, are a separate case and already fall back to showing the name only. This issue is only about icons that exist upstream but aren't released.)
Steps to reproduce
- Add a
LANGUAGE_SLUGSentry for a language whose icon exists on Devicondevelopbut not in the latest release (e.g.verilog: "verilog-original"). - Scout a profile whose top language is that language.
- The logo image fails to load. The unversioned URL points at a file that isn't in the release.
Expected
An icon that's merged to Devicon should be usable in gitfut without waiting for a Devicon release.
Proposed fix
Add a DEVICON_DEVELOP base URL (.../devicon@develop/icons) and use it in LOGO_URL_OVERRIDES for develop-only icons, so each one can be shown now and its override deleted once Devicon ships a new release. This keeps the default path on released icons, so nothing about the existing ~150 icons changes.
I'm happy to open a PR with this, starting with Verilog and SystemVerilog.
Card / screenshot
Environment
- Browser: Google Chrome
- OS: Windows 11