-
Notifications
You must be signed in to change notification settings - Fork 5
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
Errors adding a dependency to a new project #9
Comments
If I do the same two dependencies the other way round, the first (calculator) succeeds, but the second (QR) fails. The failure on the second has the "different number of imports" message (not the "patch version number" it had when it was going first). My guess is that there is some issue with merging WITs. So a second dep always fails at the first hurdle. But that the "patch version" error happens only in the (As Karthik has noted, this was written as an experiment. So it totally makes sense that managing these kinds of errors and partial failures wasn't a priority. But even in experimental stage, it's so good that we are recommending it in blogs (and I've had people asking me why it's not in the docs). So we maybe need to plan on investing in it, and specifically in its failure modes...!) |
|
Okay the issue with the |
Unexpected character '/' after patch version number(fixed)Created a new Spin project using the
http-rust
template then tried to add a dependency to it, but I got a cryptic error:A
.wit
directory was created with the right tree underneath it, and deps.wit looks reasonable, but nothing was added tospin.toml
.World contains different number of imports than expected
I am not sure if this is related or a different error or related, but when I then tried to add a second component, I got a different error:
This second component was not added to deps.wit (or to spin.toml).
The text was updated successfully, but these errors were encountered: