Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[json-c] Build error #29300

Closed
whirvis opened this issue Jan 30, 2023 · 4 comments
Closed

[json-c] Build error #29300

whirvis opened this issue Jan 30, 2023 · 4 comments
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@whirvis
Copy link

whirvis commented Jan 30, 2023

Package: json-c[core]:x64-windows -> 2022-06-26#2

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.34.31937.0
  • vcpkg-tool version: 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
    vcpkg-scripts version: 91dd61b 2023-01-27 (3 days ago)

To Reproduce

./vcpkg install json-c or ./vcpkg install json-c:x64-windows

Failure logs

-- Downloading https://github.com/json-c/json-c/archive/d28ac67dde77566f53a97f22b4ea7cb36afe6582.tar.gz -> json-c-json-c-d28ac67dde77566f53a97f22b4ea7cb36afe6582.tar.gz...
[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://github.com/json-c/json-c/archive/d28ac67dde77566f53a97f22b4ea7cb36afe6582.tar.gz
error: Failed to download from mirror set
error: File does not have the expected hash:
url: https://github.com/json-c/json-c/archive/d28ac67dde77566f53a97f22b4ea7cb36afe6582.tar.gz
File: C:\vcpkg\downloads\json-c-json-c-d28ac67dde77566f53a97f22b4ea7cb36afe6582.tar.gz.7220.part
Expected hash: 30063c8e32eb82e170647363055119f2f7eab19e1c3152673b966f41ed07e0349c3d6141b215b9912f9e84c2e06677b3d7ac949f720c7ebc2c95d692dc3881fe
Actual hash: a766d495a1a657f93d7ddb59dc30d0a8b560abcb0c82c66076d51f5e007b9da83186aaf7029c730bf2560046bd6fd4bbf1a50d2b437ae0294176e7203e774033
[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: 2172 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 1.029 s (996046 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)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/json-c/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:147 (include)

Copied from C:\vcpkg\installed\vcpkg\issue_body.md with slight modifications.

@whirvis whirvis added the category:port-bug The issue is with a library, which is something the port should already support label Jan 30, 2023
@BillyONeal
Copy link
Member

Duplicate of #29288

@BillyONeal BillyONeal marked this as a duplicate of #29288 Jan 30, 2023
@BillyONeal BillyONeal closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
@whirvis
Copy link
Author

whirvis commented Jan 30, 2023

My apologies! I could not find that issue when searching for [json-c]. Do you know a better way I can find these issues so I don't make the mistake of opening a duplicate again? Thank you!

@BillyONeal
Copy link
Member

My apologies! I could not find that issue when searching for [json-c]. Do you know a better way I can find these issues so I don't make the mistake of opening a duplicate again? Thank you!

No, but hopefully "github broke everyone" is sufficiently rare that you don't need to have back pocket strategies :)

@whirvis
Copy link
Author

whirvis commented Jan 31, 2023

Haha, still thank you! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

2 participants