spinframework / spinframework/spin
Received runtime error that should be thrown at component build time
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.5k
- Forks
- 310
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 24
Description
Received the below error when running spin up. I incorrectly capitalized the variables in my spin.toml file, and this caused some delays when the app succeeded after spin build, but failed at runtime. Can we have this error at build time, rather than runtime?
Error: invalid variable name: "DB_URL": invalid character 'D'. Variable names may contain only lower-case letters, numbers, and underscores.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how spin build and spin up validate variable names, using the reported spin.toml case as the reproduction. Check that an uppercase variable is rejected during component build rather than only at runtime, and run the relevant existing validation tests or commands to confirm the timing and error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100