[protobuf] Delete unused backends from sources. (#36377)

We have an internal Microsoft report of dependency tracking tools complaining about requirements.txt in the Python backend of protobuf after a build. It's just as likely that similar alerts will be fired for other unused language backends. However, they're unused, so we can delete them.
This commit is contained in:
Billy O'Neal 2024-01-26 16:45:13 -08:00 committed by GitHub
parent a3a0fc0eae
commit ed024a8897
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 1 deletions

View File

@ -33,6 +33,17 @@ if (VCPKG_DOWNLOAD_MODE)
vcpkg_find_acquire_program(PKGCONFIG)
endif()
# Delete language backends we aren't targeting to reduce false positives in automated dependency
# detectors like Dependabot.
file(REMOVE_RECURSE
"${SOURCE_PATH}/csharp"
"${SOURCE_PATH}/java"
"${SOURCE_PATH}/objectivec"
"${SOURCE_PATH}/php"
"${SOURCE_PATH}/python"
"${SOURCE_PATH}/ruby"
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS

View File

@ -1,6 +1,7 @@
{
"name": "protobuf",
"version": "3.21.12",
"port-version": 1,
"description": "Protocol Buffers - Google's data interchange format",
"homepage": "https://github.com/protocolbuffers/protobuf",
"license": "BSD-3-Clause",

View File

@ -6854,7 +6854,7 @@
},
"protobuf": {
"baseline": "3.21.12",
"port-version": 0
"port-version": 1
},
"protobuf-c": {
"baseline": "1.4.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8d742753b6c35666168a4178f0aae986740ae42c",
"version": "3.21.12",
"port-version": 1
},
{
"git-tree": "3b145508ba614fe26989b23f6317f15bf6467be4",
"version": "3.21.12",