下载远程文件然后校验文件时hash值大小写不同导致校验失败,请问这是bug么?还是我哪儿没弄对 #4388
-
这是几个月前写的,当时是没没问题的。今天突然想起来修改一个东西,然后发现出现问题了。 note: install or modify (m) these packages (pass -y to skip confirm)?
-> cli11 2.3.2
-> fmt 9.1.0
please input: y (y/n/m)
y
checking for ping ... ok
pinging the host(github.com) ... 97 ms
checking for curl ... C:\xmake\winenv\bin\curl
C:\xmake\winenv\bin\curl -SL -A "Xmake/2.8.5+HEAD.debbd3ac3 (MSYS;3.4.8.x86_64) curl/8.2.1" https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.3.2.tar.gz -o v2.3.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 296k 100 296k 0 0 191k 0 0:00:01 0:00:01 --:--:-- 668k
error: unmatched checksum, current hash(aac0ab42) != original hash(AAC0AB42)
=> download https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.3.2.tar.gz .. failed
we can also download these packages manually:
- https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.3.2.tar.gz
to the local search directories:
- cli11-2.3.2.tar.gz, v2.3.2.tar.gz
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
error: |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Nov 15, 2023
Replies: 3 comments 1 reply
-
这个包的hash配置有大写,不对,你提个pr过来,到xmake-repo,改下里面的hash 改成小写 |
Beta Was this translation helpful? Give feedback.
0 replies
-
你误会了,这个包不是从xmake-repo安装的,是我自己写在xmake.lua里面的。当时写的时候由于我习惯于用7z自带的hash功能,所以直接复制粘贴出来的都是大写。 package("cli11")
set_urls("https://github.com/CLIUtils/CLI11/archive/refs/tags/v$(version).tar.gz")
add_versions("2.3.2","AAC0AB42108131AC5D3344A9DB0FDF25C4DB652296641955720A4FBE52334E22")
on_install(function(package)
os.cp("include/CLI",package:installdir("include"))
end)
package_end()
package("fmt")
set_urls("https://github.com/fmtlib/fmt/releases/download/$(version)/fmt-$(version).zip")
add_versions("9.1.0","CCEB4CB9366E18A5742128CB3524CE5F50E88B476F1E54737A47FFDF4DF4C996")
add_defines("FMT_HEADER_ONLY")
on_install(function(package)
os.cp("include/fmt",package:installdir("include"))
end)
package_end() |
Beta Was this translation helpful? Give feedback.
1 reply
-
约定了啊,了解了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
那你改成小写就行了 xmake包的 hash 严格约定是小写