-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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).
|
||
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" |
There was a problem hiding this comment.
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
--package-whole-project-src
flag (exotic use-cases).This allows one to have reproducible builds for contracts that exist within Cargo workspaces that are subject to issue #43.
Related to: #42.