Fix clash with new esp generate template#37
Conversation
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
|
MegaLinter has automatically applied linters fixes on this PR. |
Co-authored-by: petekubiak <37507920+petekubiak@users.noreply.github.com>
template/init.rhai
Outdated
| print("*** To add the commitment issues crate to your project, run:"); | ||
| print(); | ||
| print("cargo add --git https://github.com/dysonltd/commitment-issues"); | ||
| print("cargo add --build --git https://github.com/dysonltd/commitment-issues") |
There was a problem hiding this comment.
I think we need an extra ; here maybe
There was a problem hiding this comment.
When running this:
➜ cargo generate -g https://github.com/dysonltd/commitment-issues.git -b bugfix/esp-generate-linker-clash
Error: ⛔ Failed executing script: init.rhai
Caused by:
Syntax error: Expecting ';' to terminate this statement (line 27, position 2)
~
|
@petekubiak when i ran this line:
|
|
Running the following handcoded example i get the following: Cargo.toml Output: |
|
Thanks for catching that @ScottGibb ! |
| use commitment_issues::include_metadata; | ||
|
|
||
| include_metadata!(); | ||
| commitment_issues::include_metadata!(); |
There was a problem hiding this comment.
Should the template generated by cargo generate use this oneline version too? i.e. template/src/main.rs
| As such, you will also need to add the crate as a build dependency with: | ||
|
|
||
| ```sh | ||
| cargo add --build --git https://github.com/dysonltd/commitment-issues |
There was a problem hiding this comment.
Update the template to have this too
|
@petekubiak can confirm it works on mac xD |

Description
.rodatasection (or equivalent on Mac)Fixes #34
Fixes #35
Fixes #36
Type of change
Please Tick the options that are relevant.
How Has This Been Tested?
cargo generateChecklist