-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
cargo install fj-app
has been broken since version 0.24.0
#1356
Comments
So, looking at the crate contents of |
Sorry for the problem, I haven't published any crates yet so it wasn't super obvious for me. |
No need to apologize! It wasn't obvious to me either, or I would have caught it in review 😄
That reasoning makes sense. It would be my preference too. I don't think testing will be complicated much. Should be easy as adding the new crate to the workspace. |
I'm looking into this now. Would like to see it fixed before the next release on Monday. |
This is still broken with 0.25.0! New error messages:
I did some digging and found this:
Source: https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields I'll take a look later! |
cargo install fj-app
is broken for version 0.24.0cargo install fj-app
is broken since version 0.24.0
cargo install fj-app
is broken since version 0.24.0cargo install fj-app
has been broken since version 0.24.0
Okay, so the problem is indeed that Cargo will not include any subdirectory with a We could rename the file to something else to allow it to be included, then rename it again on-the-fly when creating the model. But then it won't be part of the Cargo workspace, and thus won't be part of any local or CI builds. Another option is to include the template as an archive file in the repository, but then we'd need automation to rebuild and check this archive, or it will end up broken all the time. The bottom line is, I don't see a straight-forward solution, and I don't want to invest my time in any complicated ones right now. For the time being, I will remove the feature and re-open #1271. Thank you for working on this, @MartinKavik! Too bad it didn't work out, for the time being. |
What's the problem with including that archive file in the repository? I think we just need to:
Do you see any problems with this solution / am I overlooking something? Thanks! (I came back to this issue to think about it more because I'll have to resolve the same problem in MoonZoon sooner or later, too.) |
There's no inherent problem, we'd just need an automated way to make sure it's up-to-date. That seemed like more complexity than I wanted to get involved with that moment, so I opted to remove the feature instead. I didn't think of using Just to make sure we're talking about the same thing, here's the solution I envision, based on your comment:
Is that what you had in mind? If so, I don't understand that part:
We can't put the archive in |
Exactly.
By "update" I meant to rewrite paths with |
Ah, got it. Thanks for the clarification! |
Here's what happens, as of now (the latest version being 0.24.0), when running
cargo install fj-app
:This was most likely introduced by #1344.
The text was updated successfully, but these errors were encountered: