-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[astr] New port #38734
base: master
Are you sure you want to change the base?
[astr] New port #38734
Conversation
usage:
When testing usage, the following error occurs:
|
Could you please check if your vcpkg installation actually contains the astr port? It should be under G:/astr/ports/ I guess. |
this is indeed interesting, looking at the build artifacts from the checks, e.g. https://dev.azure.com/vcpkg/c1ee48cb-0df2-4ab3-8384-b1df5a79fe53/_apis/build/builds/102939/artifacts?artifactName=file%20lists%20for%20x64-windows&api-version=7.1&%24format=zip , the required cmake files exists, see the file listing
however, there is a slightly improved version now already online, and there is also an option to build without tests so the doctest dependency goes away (cmake standard, I would also like to say thank you for bringing astr to vcpkg, I hope I can help making this PR pass |
ports/astr/portfile.cmake
Outdated
|
||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this header-only?
Then add an early
set(VCPKG_BUILD_TYPE release) # header-only
and
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") | |
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") |
is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is a header-only library,
The suggested change in the CMakeLists.txt file is already part of the 0.2.1 update, which I released earlier today.
@bytebunny , could you please add the 2 changes to the port file,
-DBUILD_TESTING=OFF
and set(VCPKG_BUILD_TYPE release) # header-only
and point to the 0.2.1 release, then your PR should validate smoothly.
Thank you so much for your effort!
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
usage:
When testing usage, the following error occurs:
|
Can you please explain the test setup, @MonicaLiu0311 astr build and tests with all 3 major compiler in github CI it's used extensive in https://github.com/a4z/zq, which also builds on Linux OSX and Windows and the line you refere to is total valid (modern) C++ so I am confused, astr is a C++20 library, the only explanation is that you test it with a compiler / flags that has not sufficient c++20 support, but that should not be a blocker for packaging |
@MonicaLiu0311, sorry, forgot to remove the previous version. Thank you for spotting it! |
The usage test passed on
|
This is a new library created two weeks ago, without the same name, similar to #38265. |
Hi @bytebunny We are considering new acceptance criteria for ports in the vcpkg registry. Given that this is a new library with no pre-existing user base and it’s not part of a well stablished suite of libraries, we believe that it is a good candidate for self-hosting in a custom registry. Users will still be able to install your library with vcpkg using either the registries or overlay ports features; and you get full control of when you update the port and the changes it includes. Would you be interested in setting up a custom registry for your library? We can aid setting up your registry and providing instructions for your users to install your vcpkg port. We are also interested in receiving feedback regarding the suggested alternative if you decide to give it a try. I'm leaving this PR as a draft to serve as a way of communication with you regarding the suggested alternative of self-hosting this port. Feel free to use this thread to request assistance with said task. |
Hi @vicroms,
The link you provided does not work (https://learn.microsoft.com/en-us/produce/publish-to-a-git-registry).
Do you mean the custom registry? We already do that at work. I just thought more people could get the package out-of-the-box.
Thank you. It would be helpful to fix the link to the documentation. There is also a second library that uses astr via fetch content that should also be available, this one: https://github.com/a4z/zq |
Thanks for pointing out the broken link, I've fixed it in my original comment. We are gathering more data on the usage of custom registries and overlay ports as alternatives for packages in the main registry. Is your custom registry private? Would you be willing to provide a public version of the registry? With a public version of your registry you could provide instructions in
"registries" [{
"kind": "git",
"repository": "https://github.com/az4/vcpkg-registry",
"baseline": "<latest commit ID>",
"packages": [ "astr" ]
}]
|
Thank you for the information, @vicroms There are commercial places using astr with private registries; those can not be shared. When I find time, I can try to create a mini registry on my GitHub space with astr and zq Since I have to do that in my spare time, I can make no promise about how fast that will happen |
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.