From 5b9ab9f0e5b3f924a32419c0faf8bb7cbde82d7e Mon Sep 17 00:00:00 2001 From: Aster Seker Date: Sat, 19 Sep 2026 01:29:36 +0300 Subject: [PATCH] fix(vcpkg): remove repository guidance from packages Do not ship AGENTS.md files copied by the recursive public-header install. Remove the root and nested guidance files from the vcpkg package while retaining the source repository documentation. --- vcpkg-overlay/ports/log-it-cpp/portfile.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcpkg-overlay/ports/log-it-cpp/portfile.cmake b/vcpkg-overlay/ports/log-it-cpp/portfile.cmake index 23a1174..3b4db96 100644 --- a/vcpkg-overlay/ports/log-it-cpp/portfile.cmake +++ b/vcpkg-overlay/ports/log-it-cpp/portfile.cmake @@ -25,6 +25,15 @@ vcpkg_cmake_config_fixup(PACKAGE_NAME log-it-cpp CONFIG_PATH lib/cmake/log-it-cp # the dedicated Linux pkg-config consumer job. vcpkg_fixup_pkgconfig(SKIP_CHECK) +# Agent guidance belongs to the source repository, not to the installed package. +file(GLOB_RECURSE _logit_agent_files + "${CURRENT_PACKAGES_DIR}/include/AGENTS.md" + "${CURRENT_PACKAGES_DIR}/include/*/AGENTS.md" +) +if(_logit_agent_files) + file(REMOVE ${_logit_agent_files}) +endif() + vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") file(REMOVE_RECURSE