This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new c513f29 Fix broken wireshark build workflow on macOS (#414)
c513f29 is described below
commit c513f29fadce86bacaf4f878d8d25064f7560083
Author: Yunze Xu <[email protected]>
AuthorDate: Sun Mar 17 23:10:15 2024 +0800
Fix broken wireshark build workflow on macOS (#414)
### Motivation
See
https://github.com/apache/pulsar-client-cpp/actions/runs/8276076995/job/22644077705
```
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
```
`brew install` failed because the wireshark dependency depends on
[email protected] and it failed at `brew link`.
### Modifications
Remove the existing binaries that might conflict.
---
.github/workflows/ci-pr-validation.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/workflows/ci-pr-validation.yaml
b/.github/workflows/ci-pr-validation.yaml
index 5010411..9f113b0 100644
--- a/.github/workflows/ci-pr-validation.yaml
+++ b/.github/workflows/ci-pr-validation.yaml
@@ -64,6 +64,11 @@ jobs:
run: |
# See https://github.com/Homebrew/homebrew-core/issues/157142
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
+ cd /usr/local/bin
+ rm -f 2to3* idle3* pydoc* python3*
+ rm -f /usr/local/share/man/man1/python3.1
/usr/local/lib/pkgconfig/python3*
+ cd /usr/local/Frameworks/Python.framework
+ rm -rf Headers Python Resources Versions/Current
brew update
brew install pkg-config wireshark protobuf
- name: Build wireshark plugin