Skip to content

Find and build all packages individually #22

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

Closed
wants to merge 1 commit into from

Conversation

webmaster128
Copy link
Member

@webmaster128 webmaster128 commented Aug 19, 2020

Closes #21

So, the basic idea is: find all Cargo.tomls and run an optimized build in their directories. An optional argument serves as a filtering path.

The verification process for cosmwasm-plus is still not solved because:

  1. Running the default command in the repo will build all of . ./contracts/cw20-base ./contracts/cw20-escrow ./contracts/cw1-whitelist ./contracts/cw1-subkeys ./packages/cw1 ./packages/cw20 ./packages/cw2 in no defined order, such that the build in . can override the individual contracrt builds. This can only be solved by providing a path argument for filtering.
  2. It is still unclear which source code will be used for verification. If we use the full repo for creating the builds, we also need to use the full repo for verifying them.

@webmaster128 webmaster128 requested a review from ethanfrey August 19, 2020 14:49
Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Nice one

for contract_dir in "${contract_dirs[@]}"; do
echo "Building contract in $(realpath -m "$contract_dir")"
(
cd "$contract_dir"
Copy link
Member

Choose a reason for hiding this comment

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

The issue of the . directory being called in any random order and overriding others can be fixed here if we just filter for actual crates (eg. if there is the members field in Cargo.toml skip it)

Otherwise, I like the find

@webmaster128
Copy link
Member Author

Closing as this is a dead end as described in #21 (comment)

@webmaster128 webmaster128 deleted the search-packages branch August 20, 2020 16:43
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.

Fix how cosmwasm-plus compiles
2 participants