-
Notifications
You must be signed in to change notification settings - Fork 104
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
WikiBook Ada Programming module wikibook_hello_world_1 release 1.0.0 #1015
WikiBook Ada Programming module wikibook_hello_world_1 release 1.0.0 #1015
Conversation
Why don't you include all the examples of the wikibook? |
Because that is a lot of work which will take a few weeks or month. And one usually starts with a prove of concept. But if you have lot's of spare time I'll add you to the project ;-) But more importantly what is wrong with the build? |
OK, understood. I had curiosity about what you had in mind. Unfortunately, I'm spending more time in open source than what I should.
It might be that the location is not correct. |
I'm still wondering, if this is a placeholder, shouldn't it be wikibook_examples? Or do you plan to include a crate for each example? I think that would be overkill. |
Yes that is was plan. It's my understanding that crates are ment to be small and self contained. And putting all samples in one crate would be rather convoluted. Currently there are ≈20 gpr project file. So even back in the days I didn't put everything in one project. But since the pull request is not accepted yet there is still time to discuss this. I can always abandon the pull request and make a new one. I see three options:
|
Given the reduced size of example programs and for user convenience, I'd go for a single crate for downloading all the examples, that is, a single crate is included in the community index. As far as I understand, that doesn't mean that you cannot include other subcrates in the repository, one per project, if you like Alire to be used for building them, which also makes sense. The ada_spark_workflow proposes a similar approach for the |
I'd go with @mgrojo's suggestion and have a single crate, with separate nested crates for each example. Note that such nested crates will be reported when getting or withing your top-level crate, e.g.:
|
Of course I always hope that more Ada developer join and supply sample code.
Interesting. Sound good. Three question:
Of course I could start all the crates with “test” then they will all be build and run by the continues integration framework. |
There's no limit. But also there's no way to exclude a crate from being found.
No, but see below.
Not really; you'd need some root crate that might do nothing but refer people to the actual examples.
That was a hack that might be removed at any time because there was an issue with |
Ok try this and see how it works. |
executables = ["hello_world_1","hello_world_2","hello_world_3","hello_world_4"] that doesn't actually work. Only the first executable is created. |
What are you trying to do here? That field only informs Alire of which executables should exist after a successful build. |
Updating the sample code for the WikiBook Ada Programming to Alire. I hope that will make it easier for anyone who reads the book.