[google-cloud-cpp] Add iam_v3 to CMake Config Fixup List#51486
Conversation
|
@microsoft-github-policy-service agree |
|
With this patch; on and on |
Hmm that seems kind of unfortunate... |
|
I couldn't find the build logs; but from your snippet I'd say that
comes from the source Protobuf definition and
comes from the Android NDK. If that's the case, this seems like a fundamental incompatibility between the Google Cloud C++ SDK and Android. Which leads me to wonder how this ever worked at all? It's not obvious to me how the broken IAM feature (which should not have worked on any platform at all) should have passed your Android tests, while this IAM fix would have failed them? I'm going to push another commit that disables my fix (we're in draft state anyway); I want to confirm that your tests still fail and that my fix doesn't somehow mask the failures. |
|
…l fails" This reverts commit 37d35af.
|
Oh, sorry, you're showing me how to access the build logs— thanks. Nevertheless: my second commit 37d35affeb79d4697d3761a30232a2e2e8e83b37 which restored the port to the 'status quo ante' also failed; confirming my suspicion that the Google Cloud C++ SDK and the Android NDK are fundamentally incompatible. I've restored my fix (again, without this fix the |
9d0532a to
1b176cb
Compare
Damn if only someone at Google knew someone at Google! (Yes I know at big companies it's never that simple but I can laugh) |
This fixes the broken
iamfeature of thegoogle-cloud-cppport. The symptom (reproduced onarm64-linuxandx64-windows):Root cause is the addition of the IAM v3 API in this commit of the package source. This causes the creation by this code of
in generated
google_cloud_cpp_iam-config.cmake. The portfile'sgoogle_cloud_cpp_cmake_config_fixupfunction is responsible for moving CMake config files fromlib/cmake/google_cloud_cpp_iam/toshare/google_cloud_cpp_iam/. However, sinceiam_v3is missing from the hardcoded list, and as a result thegoogle_cloud_cpp_iam_v3config files are deleted by the subsequentfile(REMOVE_RECURSE)../vcpkg x-add-version --alland committing the result.