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

Add GOBIN for protoc binaries installs: #729

Merged
merged 2 commits into from
May 13, 2023

Conversation

jacobweinstock
Copy link
Member

Description

This puts the protoc binaries in our bin directory so that they are available when we update the PATH at the top of the Makefile.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

This puts the protoc binaries in our `bin`
directory so that they are available when
we update the PATH at the top of the Makefile.

Signed-off-by: Jacob Weinstock <[email protected]>
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #729 (e4c8d87) into main (eef6545) will not change coverage.
The diff coverage is n/a.

❗ Current head e4c8d87 differs from pull request most recent head 810a039. Consider uploading reports for the commit 810a039 to get more accurate results

@@           Coverage Diff           @@
##             main     #729   +/-   ##
=======================================
  Coverage   55.54%   55.54%           
=======================================
  Files          26       26           
  Lines        1100     1100           
=======================================
  Hits          611      611           
  Misses        474      474           
  Partials       15       15           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

These deps were missing when running in docker
and could be missing for users that have nix-shell
already installed.

Signed-off-by: Jacob Weinstock <[email protected]>
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO)
Copy link
Member

@chrisdoherty4 chrisdoherty4 May 10, 2023

Choose a reason for hiding this comment

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

I don't think make generate-proto will find these binaries unless someone adds $PWD/bin so their path.

I'd be keen to stick them under out/bin or out/tools also. I intend on moving the binaries we build to out/bin at some point so we have easy clean up. This compliments the existing out stuff we have for linters and releasing.

Copy link
Member Author

Choose a reason for hiding this comment

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

the makefile does add $PWD/bin to the PATH.

PATH := $(PATH):$(PWD)/bin

@chrisdoherty4
Copy link
Member

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 13, 2023

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 861779b

@mergify mergify bot merged commit 861779b into tinkerbell:main May 13, 2023
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