Skip to content

Fix solana dir #318

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

Merged
merged 7 commits into from
Nov 29, 2022
Merged

Fix solana dir #318

merged 7 commits into from
Nov 29, 2022

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Nov 28, 2022

The goal of this PR is fixing an annoying quirk of the repo that meant you had to the pyth_client repo and the solana repo side to side in the same folder. The trick is we can find the solana local installation by doing which cargo-build-bpf. This is inspired by https://github.com/guibescos/example-helloworld .

Resolving the solana installation ended up a little bit dirty in build.rs because bindgen needs to find the solana C headers. This will get better when we get rid of the C headers.

jayantk
jayantk previously approved these changes Nov 28, 2022
Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

nice. huge quality of life improvement

@jayantk
Copy link
Contributor

jayantk commented Nov 28, 2022

oh can you take a look at the docs and update anything about the side-by-side solana dir?

@guibescos
Copy link
Contributor Author

Updated docs and all the other places where the path of solana was needed

@guibescos guibescos merged commit 765f192 into main Nov 29, 2022
@guibescos guibescos deleted the guibescos/fix-solana-dir branch November 29, 2022 17:22
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