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

refactor: use cargo ws root for constants.json path #1214

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

vlopes11
Copy link
Contributor

This commit enhances the functionality of constants.json path resolution by employing cargo metadata output to establish the manifest path of the workspace root in the current working directory. As a result, it is now feasible to determine the absolute path of the constants file without recourse to a temporary build script hack.

Additionally, this commit eradicates the aforementioned hack that wrote data into the git working set tree.

Linked Issues

This commit enhances the functionality of `constants.json` path
resolution by employing `cargo metadata` output to establish the
manifest path of the workspace root in the current working directory. As
a result, it is now feasible to determine the absolute path of the
constants file without recourse to a temporary build script hack.

Additionally, this commit eradicates the aforementioned hack that wrote
data into the git working set tree.

Resolves #1204
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Merging #1214 (c7f4516) into nightly (db52671) will decrease coverage by 0.2%.
Report is 1 commits behind head on nightly.
The diff coverage is 56.5%.

Additional details and impacted files
Files Coverage Δ
module-system/sov-modules-macros/src/manifest.rs 60.9% <56.5%> (-2.0%) ⬇️

... and 4 files with indirect coverage changes

Copy link
Member

@preston-evans98 preston-evans98 left a comment

Choose a reason for hiding this comment

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

LGTM, pending the change we discussed earlier to reduce the risk of accidentally overriding the constants.json via the environment when compiling for release.

@vlopes11 vlopes11 enabled auto-merge December 13, 2023 21:18
@vlopes11 vlopes11 requested a review from bkolad December 14, 2023 11:00
@vlopes11 vlopes11 added this pull request to the merge queue Dec 19, 2023
Merged via the queue into nightly with commit 6cd2598 Dec 19, 2023
16 checks passed
@vlopes11 vlopes11 deleted the vlopes11/refactor/constants-cargo-ws-root branch December 19, 2023 11:33
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.

Problematic behavior of sov-modules-macros
3 participants