microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.15k stars 6.38k forks source link

[geotrans] build failure - Invalid hash. #29475

Closed ASxa86 closed 1 year ago

ASxa86 commented 1 year ago

Host Environment

To Reproduce

Steps to reproduce the behavior:

./vcpkg install geotrans:x64-windows or ./vcpkg install geotrans:x64-linux

Failure logs

PS D:\vcpkg> .\vcpkg install geotrans:x64-windows
Computing installation plan...
The following packages will be built and installed:
    geotrans[core]:x64-windows -> 3.8#2
  * vcpkg-cmake[core]:x64-windows -> 2022-10-30
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from vcpkg\archives in 1.445 ms. Use --debug to see more details.
Installing 1/2 vcpkg-cmake:x64-windows...
Building vcpkg-cmake[core]:x64-windows...
-- Installing: D:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: D:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: D:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: D:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: D:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
-- Performing post-build validation
Stored binary cache: "vcpkg\archives\83\83d832261b6a7d15b2f4fb03401c092974734b259eb295364141020789a2dbe0.zip"
Elapsed time to handle vcpkg-cmake:x64-windows: 153.5 ms
Installing 2/2 geotrans:x64-windows...
Building geotrans[core]:x64-windows...
-- Downloading https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz -> geotrans-3.8-master.tgz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
Downloading https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz
error: Failed to download from mirror set
error: File does not have the expected hash:
url: https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz
File: D:\vcpkg\downloads\geotrans-3.8-master.tgz.28768.part
Expected hash: 359704ee9700762111006d126872feab9f644af0cebd433a657473347ea48f4eb172681f5f564fbca171bbf58fe0e8fb0829597403958770b7d22ad380afeac3
Actual hash: b0bd5ca6eb584eebf0adc89eb86ec949f372bb4ea92c559f74f2055b0f121369b3d8de0bcff7b7db9abc57ac5a129d5c283d67f098e4af12d91b41747a76e541
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(956):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 4 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 816 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 2.707 min (162386858 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: 1
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. Your proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  ports/geotrans/portfile.cmake:5 (vcpkg_download_distfile)
  scripts/ports.cmake:147 (include)

error: building geotrans:x64-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+geotrans
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[geotrans]+Build+error
Include '[geotrans] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-12-14-7ae0d8527fb488fde10a89c2813802dc9b03b6f9
    vcpkg-scripts version: f14984af3 2023-01-09 (4 weeks ago)

Please use the prefilled template from D:\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.

Additional context The hash needs updated. Was able to do this locally to resolve the issue.

MonicaLiu0311 commented 1 year ago

Confirm, reproduce locally.

PS E:\vcpkg02> ./vcpkg version
vcpkg package management program version 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75

See LICENSE.txt for license information.