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

makefile updates #334

Merged
merged 1 commit into from
Sep 9, 2024
Merged

makefile updates #334

merged 1 commit into from
Sep 9, 2024

Conversation

dragonsinth
Copy link
Member

No description provided.

Copy link
Contributor

@gpassini gpassini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I have a question.

@@ -31,5 +31,5 @@ if [[ "$(${PROTOC} --version 2>/dev/null)" != "libprotoc 3.${PROTOC_VERSION}" ]]
mkdir -p .tmp/protoc
curl -L "https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-${PROTOC_OS}-${PROTOC_ARCH}.zip" > .tmp/protoc/protoc.zip
pushd ./.tmp/protoc && unzip protoc.zip && popd
touch -c ./.tmp/protoc/bin/protoc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm missing the subtlety here. This command will never fail, right? So what we want to do is really change its modification time? Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unpacking protoc gives it a very old timestamp, but we reference it as a dependency in the Makefile, so we actually want to have it use whatever time it got unpacked. Otherwise, changing protoc versions won't force a rebuild.

@dragonsinth dragonsinth merged commit 1928f38 into master Sep 9, 2024
6 checks passed
@dragonsinth dragonsinth deleted the scottb/makefile branch September 9, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants