aboutcode-org / aboutcode-org/fetchcode

take some inspiration from NixOS for different fetchers, mirrors, and so on.

未關閉
#82 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
HTML
星號
13
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

NixOS has quite a few fetchers for different VCS systems as well as mirrored sites:

It might be worthwhile to spend some time understanding what they are doing there and get some inspiration. Some systems, such as GitHub, apparently do not return hashes in a consistent way per release, but it differs, so hashes that are used by NixOS are computed in a different way.

The NixOS fetchers have support for downloading from mirrors (example: sourceforge) and have supporting syntax in the Nix files for it, for example:

```
url = "mirror://sourceforge/scummvm/lure-${version}.zip";
```
which would automatically grab a mirror from the list of defined mirrors.

There are also some fetchers that are a bit more obscure bit which might be fun or useful to add.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。