Bradford Zhang

Results 17 comments of Bradford Zhang

> > > > ## 借贴反馈个问题: > > 近期合并了使用 aria2 进行 `make download` 的代码,部分用户安装了 aria2 进行 `make download`, 就会返回 openwrt cdn 这类比较快的下载,导致 hash 校验不正确 (如 #10185) 而 openwrt cdn 的...

> > > > 在op上游交了[pr](https://github.com/openwrt/packages/pull/19496) > > @bradfordzhang 感谢您,这个 jq 只是个例,应用了 aria2 后,日后可能会有越来越多的 openwrt cdn 和源码包 hash 不一致。但 aria2 确实提高了下载效率,糟糕的 cdn 缓存让这看起来变得糟糕了。😂 > > 举手之劳,我在想能不能采用 多个hash满足任意一个即代表校验通过 这种方式进行校验

> > > > 在op上游交了[pr](https://github.com/openwrt/packages/pull/19496) > > @bradfordzhang 感谢您。这个 jq 只是个例,应用了 aria2 后,日后可能会有越来越多的 openwrt cdn 和源码包 hash 不一致。但 aria2 确实提高了下载效率,糟糕的 cdn 缓存让这看起来变得糟糕了。😂 > > 其实是jq force push tag,不是cdn缓存问题,其他的应该不会有问题

> @bradfordzhang 目前 aria2 的下载只会在判断到最快的链接下载,而一旦 hash 不匹配,就直接判断为失败,而不是去选下一个网址继续进行尝试,这是否是个 bug 呢? 是的 我正准备解决这个问题

暂时可以通过 ``` wget https://github.com/openwrt/packages/pull/19496.patch git apply 19496.patch ``` 解决这个问题 上游也不清楚发生了什么……😓

> @bradfordzhang this happen when someone force push stuff to the repo and we have same release but different tar... Something strange is happening there... i tested it. github package...

jq-1.6.tar(1).gz from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz jq-1.6.tar(2).gz from https://sources.cdn.openwrt.org/jq-1.6.tar.gz jq-1.6.tar(3).gz from https://sources.openwrt.org/jq-1.6.tar.gz ![](https://user-images.githubusercontent.com/44148148/193099580-81d8db71-9f52-450a-bebb-ade742baab05.png)

> @bradfordzhang this happen when someone force push stuff to the repo and we have same release but different tar... Something strange is happening there... can we set two hash...

> @bradfordzhang very suspicious not wired my poor english😂