Skip to content
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

chore(dev): fix protoc installation script for macOS arm64 #22221

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

aryan9600
Copy link
Contributor

Summary

Bump the protoc version from 3.19.5 to 3.20.2 in
scripts/environment/install-protoc.sh. The 3.19.5 release of protocol buffers don't include assets for macOS arm64, hence the script fails on the same.
The bump is to 3.20.2 instead of 3.20.3 because for some reason, only the 3.20.2 release contains assets for macOS arm64.

Furthermore, modify the flags passed to the mv command to be macOS compatible.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

How did you test this PR?

By running the script on a macOS arm64 machine.

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the "no-changelog" label to this PR.

Checklist

  • Please read our Vector contributor resources.
    • make check-all is a good command to run locally. This check is
      defined here. Some of these
      checks might not be relevant to your PR. For Rust changes, at the very least you should run:
      • cargo fmt --all
      • cargo clippy --workspace --all-targets -- -D warnings
      • cargo nextest run --workspace (alternatively, you can run cargo test --all)
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run dd-rust-license-tool write to regenerate the license inventory and commit the changes (if any). More details here.

References

Bump the protoc version from 3.19.5 to 3.20.2 in
`scripts/environment/install-protoc.sh`. The [3.19.5 release](https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.5)
of protocol buffers don't include assets for macOS arm64, hence
the script fails on the same.
The bump is to 3.20.2 instead of 3.20.3 because for some reason, only
the [3.20.2 release](https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.2)
contains assets for macOS arm64.

Furthermore, modify the flags passed to the `mv` command to be macOS
compatible.

Signed-off-by: Sanskar Jaiswal <[email protected]>
@aryan9600 aryan9600 requested a review from a team as a code owner January 16, 2025 08:32
@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Jan 16, 2025
@pront
Copy link
Member

pront commented Jan 16, 2025

Thank you @aryan9600 👍

@pront pront changed the title chore: fix protoc installation script for macOS arm64 chore(dev): fix protoc installation script for macOS arm64 Jan 16, 2025
@pront pront enabled auto-merge January 16, 2025 14:42
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Jan 16, 2025
@pront pront added this pull request to the merge queue Jan 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2025
@pront pront added this pull request to the merge queue Jan 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2025
@pront
Copy link
Member

pront commented Jan 16, 2025

@pront pront added this pull request to the merge queue Jan 16, 2025
Merged via the queue into vectordotdev:master with commit ca73a06 Jan 16, 2025
89 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants