Skip to content

Conversation

@cmichi
Copy link
Collaborator

@cmichi cmichi commented Feb 16, 2023

Folder structure preview here.

Following a number of discussions I've set up https://github.com/paritytech/ink-examples.

Some of the reasons to do so were:

  • The examples in this repository always referenced the latest master release. They often had already been updated to breaking changes that were not published yet. Hence copy/pasting them resulted in build errors.
  • The examples were not copy/paste-able, the Cargo.toml used relative paths for its dependencies.
  • Over time we've added examples that were in fact just created for internal use (e.g. mother).

We want to have one dedicated repo where people can just copy/paste existing examples and be sure they work with the latest release.

@cmichi cmichi requested review from a team, HCastano, SkymanOne and ascjones as code owners February 16, 2023 15:46
the content of `integration-tests` (minus `mother`, `lang-err-integration-tests` and
`mapping-integration-tests`). Besides copying those folders over, the only change you
need to do manually is to switch the dependencies in the `Cargo.toml`'s to use the
published version of your release.
Copy link
Collaborator Author

@cmichi cmichi Feb 16, 2023

Choose a reason for hiding this comment

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

Whoever wants to can add a comfy one-line command in a follow-up.

@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2023

Codecov Report

Merging #1659 (5bf95c9) into master (7b73701) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1659      +/-   ##
==========================================
- Coverage   70.76%   70.71%   -0.05%     
==========================================
  Files         206      206              
  Lines        6416     6416              
==========================================
- Hits         4540     4537       -3     
- Misses       1876     1879       +3     
Impacted Files Coverage Δ
crates/env/src/engine/off_chain/test_api.rs 64.70% <ø> (ø)
crates/ink/codegen/src/lib.rs 100.00% <ø> (ø)
crates/ink/src/env_access.rs 9.09% <ø> (ø)
crates/allocator/src/bump.rs 85.95% <0.00%> (-2.48%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

Glad we are finally doing this!

Some conflicts to resolve but otherwise LGTM.

@cmichi cmichi merged commit b8862a1 into master Feb 20, 2023
@cmichi cmichi deleted the cmichi-use-external-examples-repo branch February 20, 2023 13:29
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