Skip to content
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

Invalid character in package name error when building entropy-tss #1182

Open
ameba23 opened this issue Nov 22, 2024 · 0 comments · May be fixed by entropyxyz/programs#99
Open

Invalid character in package name error when building entropy-tss #1182

ameba23 opened this issue Nov 22, 2024 · 0 comments · May be fixed by entropyxyz/programs#99

Comments

@ameba23
Copy link
Contributor

ameba23 commented Nov 22, 2024

An annoying but harmless error message appears when building entropy-tss:

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/b300dab/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/b300dab/templates/basic-template/generate-types/Cargo.toml:9:11
  |
9 | program = { package= "{{project-name}}", path = "..", default-features = false, features=['std'] }
  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This comes from the cargo-generate template from the programs repo.

It appears it was introduced with #1153

I'm not sure what the proper way to fix this is, we already have a related issue in programs: entropyxyz/programs#81

But i think that publishing entropy-programs-runtime and using the published version rather than the git version will probably fix this. Since we need to publish it anyway, no harm in trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

1 participant