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

Fix packaging of source code (package whole workspace when needed) #44

Merged
merged 7 commits into from
Jan 3, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Dec 27, 2023

This allows one to have reproducible builds for contracts that exist within Cargo workspaces that are subject to issue #43.

Related to: #42.

@@ -50,7 +50,7 @@ def get_source_code_files(
files_related_to_contract = set(file.path for file in source_code_files)

if include_unrelated_to_contract:
all_files = get_all_files(contract_folder, _is_source_code_file)
all_files = get_all_files(project_folder, _is_source_code_file)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a bug. But it didn't manifest, since include_unrelated_to_contract was always False (with the exception of integration tests).

@andreibancioiu andreibancioiu marked this pull request as ready for review January 2, 2024 19:33

check_project_folder_and_packaged_src_are_equivalent(project_path, parent_output_using_project, parent_output_using_packaged_src, ["adder", "multisig"])
repository_url = "https://github.com/multiversx/mx-reproducible-contract-build-example-sc"
tag = "0.4.7-beta.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be adjusted at a later time, after this merge, once a proper tag is available.

See: multiversx/mx-deprecated-reproducible-contract-build-example-sc#20

@andreibancioiu andreibancioiu changed the title Fix packaging of source code (on more exotic flows) Fix packaging of source code (package whole workspace when needed) Jan 3, 2024
@andreibancioiu andreibancioiu merged commit ac736d4 into main Jan 3, 2024
3 checks passed
@andreibancioiu andreibancioiu deleted the update-2023-12-27 branch January 3, 2024 08:52
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.

Add "--locked" on "cargo install multiversx-sc-meta"
4 participants