go x/build: 由于缺少libssl.so.1.1,git命令在android-.*-corellium构建器上出现问题,

uqdfh47h  于 9个月前  发布在  Go
关注(0)|答案(1)|浏览(149)

https://storage.googleapis.com/go-build-log/d11befbe/android-arm64-corellium_c80dd207.log :

  1. --- FAIL: TestLatest (0.01s)
  2. git_test.go:69: git clone --mirror http://127.0.0.1:40864/git/gitrepo1 /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/gitrepo-test-4244768098/gitrepo2 in : exit status 128:
  3. Cloning into bare repository '/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/gitrepo-test-4244768098/gitrepo2'...
  4. CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/libexec/git-core/git-remote-http": library "libssl.so.1.1" not found
  5. --- FAIL: TestLatest/gitrepo1 (0.00s)
  6. git_test.go:226: git ls-remote -q origin in /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/gitrepo-test-4244768098/modcache/cache/vcs/8c0735055ea1b81d6712e25976d1c2026f3fc83f00c38628a1134f3cd92a54d2: exit status 128:
  7. CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/libexec/git-core/git-remote-http": library "libssl.so.1.1" not found
  8. FAIL
  9. FAIL cmd/go/internal/modfetch/codehost 1.659s

(还有很多类似的!)
@changkun,我认为这是构建器中的一个配置问题。修复方法可能是以下之一:

  • termux 环境中安装 libssl ,或者
  • 设置 LD_LIBRARY_PATH ,以便动态链接器能找到 libssl.so.1.1 ,或者
  • termux 环境或 $PATH 中移除 git (这样我们就可以跳过需要它的测试)。
nwsw7zdq

nwsw7zdq1#

https://go.dev/cl/491659提到了这个问题:cmd/go/internal/modfetch/codehost: initialize localGitURL lazily and clean up skips

相关问题