spinframework / spinframework/spin

`cargo watch` to terminate the app when build process fails

Open
#3,417 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

In my typical development process I start from:

spin new -t http-rust -a example
cd example
spin watch

Then I alternately edit the code and test the app, e.g. using curl.

Whenever I make a mistake which results in compilation process failure, spin prints the error to stderr and keeps previous version of the app running. This requires me to constantly watch the output from spin or rely on IDE to highlight the problem. Otherwise I may end up testing outdated version of the code, which later leads to invalid reasoning.
The improvement that I would consider is terminating the app before starting compilation. This way any attempt of testing the app would reveal the compilation issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the spin watch command and reproduce the issue with the http-rust template, editing the app until compilation fails. Verify that the running app is no longer available after the failure, rather than serving the previous version; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.