-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
internal error: D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(767): Value was null #38877
Comments
Probably an old vcpkg-tool version. Update by |
I did what you suggestion:
and still have the same issue @autoantwort |
What is the result of |
|
And what is the full log or the steps to reproduce? |
Here is the output:
|
steps to reproduce
|
I also added my custom package "utilities" to the port folder of vcpkg |
This is not a valid link: https:/gitlab.gtri.gatech.edu/applied-systems-laboratory/utilities/-/archive/f663960fe910c1c665f07d34b4ba6d601bd10932/utilities-f663960fe910c1c665f07d34b4ba6d601bd10932.tar.gz |
I guess the error Message should be better |
hmm, okay thank you. I must have setup the vcpkg_from_gitlab incorrectly |
@autoantwort I fixed the link issue and the code will download now, however I still get the same error |
Can you paste your log |
PS C:\Users\drich34\Documents\Work\Network\build> cmake .. CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
Call Stack (most recent call first): Then check for known issues at: -- Running vcpkg install - failed -- Configuring incomplete, errors occurred! |
Same error, still not a valid url... |
So I wonder if its because you have to have an account to download the code. I can download it just fine when I put in that URL |
do you think that's the problem? How would I give access in vcpkg to get the code |
Per RFC 2396 it must be |
I guess you are doing something wrong because the problem does not exists in this repo |
Can you show your portfile.cmake |
I just updated the // and it still gives me the error |
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_gitlab( vcpkg_cmake_configure( vcpkg_cmake_install() vcpkg_cmake_config_fixup(PACKAGE_NAME "utilities") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
I know that the SHA512 should be the hash and not 0 but I've read that I should set it to 0 and it will give me the correct hash, but the hash isn't showing up when i do the cmake build |
@autoantwort thanks for your help so far! any further recommendations? |
I can not repo your problem. If I use your portfile I get
|
oh so it works for you? hmmmmm, interesting. I'll try a few things then |
Yes it works for me |
right now the thing I'm noticing is that the expected hash keeps changing. Every time I update it to the expected hash it says it expects a different one
|
What happens if you open https://gitlab.gtri.gatech.edu/applied-systems-laboratory/utilities/-/archive/22ece035c1ba6c8b6e434585f535f8a282601d30/utilities-22ece035c1ba6c8b6e434585f535f8a282601d30.tar.gz in your browser. Or try to open the file locally |
If i put that into my browser, it downloads a tar.gz file, which I then unzip and find all the expected files and folders in |
could this problem be due to the fact that the repo is password protected as part of my organization? perhaps I need to put some kind of sign-in functionality for vcpkg to access the repo? |
also, my organization uses a vpn, could that be part of the problem? |
Yeah. If you open the link in a private browser window you probably have to log in. also, my organization uses a vpn, could that be part of the problem?
|
You can pass |
Received the following error:
internal error: D:\a_work\1\s\src\vcpkg\base\downloads.cpp(767): Value was null
Please open an issue at https://github.com/microsoft/vcpkg/issues/new?template=other-type-of-bug-report.md&labels=category:vcpkg-bug with detailed steps to reproduce the problem.
Details:
CACHE STRING "Vcpkg toolchain file")
The text was updated successfully, but these errors were encountered: