-
Notifications
You must be signed in to change notification settings - Fork 284
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
Replace license crate with askalono #149
Conversation
Just tested it, works like a charm! 💯
Just to be sure I understood correctly, you mean adding spdx as a subtree to onefetch in order to automatically cash the licenses (generate a license-cache.bin.gz) at compile time via a build.rs? Sounds great @ebroto ! |
Yep, that's it. Alright, I will work on it soon! |
Also, forward store creation errors and use a more functional approach
Hi @ebroto, don't you think it would be better to use spdx as a The rest is great!! |
Yes, I was hesitating about the two options and went for the subtree because it's easier to manage, but indeed it seems overkill for our needs 👍 I will try with submodules instead. BTW thanks for the invitation to collaborate! |
888ef5d
to
018c9c2
Compare
This is definitely the most elegant solution, however I don't think the license cache will change that much. I will create a branch with your PR (to build the a new cache when changes on spdx occur) and use a static cache on master... |
You can also use In any case, we can always go back to the first approach and bundle the cache directly in the repository. The main con for this is that we have to remember to regenerate the cache whenever we update askalono as the caches are incompatible between versions. So what are others doing? Askalono is currently used by two crates:
So there is no "better" option here I think. After having tried all the options (xD), I'm thinking that we can simplify and just bundle the cache directly for now and see if it works for us. What do you think? |
Hey it seems we posted at the same time :) Did not think about the possibility you suggested, works for me! |
Great, thanks again for your PR @ebroto,If you have any suggestion/idea to improve the project, don't hesitate to keep contributing 🥇 |
Resolves #147
So askalono seems to use a more complex analysis that relies in a binary cache generated from a json file. For the moment I went for adding the cache directly under
resources/
. In askalono-cli the json file is checked out as a submodule from this repo and the cache is generated usingbuild.rs
.We could go with a similar approach (maybe using git subtree instead), this way we would get updates of the supported licenses and won't have to update the cache manually. Since the solution is more involved I wanted to ask first what do you think about it.