Skip to content

Conversation

@darunrs
Copy link
Contributor

@darunrs darunrs commented Apr 16, 2025

Summary

Cargo publish only includes files within the folder containing the Cargo.toml file for the package being published. This means the proto files are not included. As packaging collects files first before building, the normal build process will not work.

As a result, a specialized build script is needed to coerce the files in such a way that they can be published without impacting library usage.

I added a build script which will build the package first and then copy/modify files in such a way that they can be published without issue. This ensures local builds work as well as maintianing the dependency on the external proto files.

Rationale

Publishing the SDK was not working with cargo publish.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Ran the script locally. Now I need to run it in the CI to see if that works.

@vercel
Copy link

vercel bot commented Apr 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm
component-library ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm
insights ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm
proposals ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm
staking ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2025 3:48pm

@darunrs darunrs force-pushed the fix-publisher-sdk-deployment branch from 494f9fb to 4d5694e Compare April 16, 2025 18:05
@darunrs darunrs marked this pull request as ready for review April 16, 2025 18:40
@darunrs darunrs requested a review from a team as a code owner April 16, 2025 18:40
@darunrs darunrs force-pushed the fix-publisher-sdk-deployment branch from 46196f3 to 631c72b Compare April 17, 2025 19:21
Copy link
Contributor

@Riateche Riateche left a comment

Choose a reason for hiding this comment

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

Please see the comment. Otherwise it looks good!

@darunrs darunrs force-pushed the fix-publisher-sdk-deployment branch from dc8183a to 066127c Compare April 22, 2025 15:42
@darunrs darunrs merged commit 7d5f891 into main Apr 22, 2025
9 checks passed
@darunrs darunrs deleted the fix-publisher-sdk-deployment branch April 22, 2025 16:01
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.

4 participants