entropyxyz / programs

Source, toolchain, and examples for using programs on Entropy
https://docs.entropy.xyz/concepts/programs/
GNU Affero General Public License v3.0
19 stars 3 forks source link

Errors when building the cargo-generate template #81

Open ameba23 opened 3 months ago

ameba23 commented 3 months ago

As @JesseAbram posted on discord, whenever projects made with the cargo-generate template are built, we get the following errors:

error: invalid character `{` in package name: `{{project-name}}`, the first character must be a Unicode XID start character (most letters or `_`)
 --> ../../../../.cargo/git/checkouts/programs-aa3402a6c25553e3/78c6dd7/templates/basic-template/Cargo.toml:2:8
  |
2 | name = "{{project-name}}"
  |        ^^^^^^^^^^^^^^^^^^
  |
error: invalid character `{` in package name: `{{project-name}}`, the first character must be a Unicode XID start character (most letters or `_`)

 --> ../../../../.cargo/git/checkouts/programs-aa3402a6c25553e3/78c6dd7/templates/basic-template/generate-types/Cargo.toml:9:11
  |
9 | program = { package= "{{project-name}}", path = "..", default-features = false, features=['std'] }
  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

These don't actually stop compilation from working - but it anyway should be fixed.

Im gonna look into it, but it might be that the only way to fix it is to move the generate template to a repo of its own rather than keeping here.