-
Notifications
You must be signed in to change notification settings - Fork 0
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
Why not just use the pom from the jar? #4
Comments
ProposalAlways use When Option 1Fall back to Option 2Force user to specify path to |
I believe it boils down to the fact that I used existing capabilities in the analyzer, and there was (is?) no support for reading the pom file from the jar. If we want the analyzer to be able to use the pom in the jar, then we could perhaps change the line to st. like - pom-str (slurp pompath)
+ pom-str (or (slurp pompath) (slurp (str jar-contents-dir "/" pompath))) ; does this break on windows? Update: Oh, I see it is a little more complicated, since the pom in the jar is at META-INF/maven///pom.xml so we’d need to be smarter at finding it… |
Thanks for looking into this @holyjak. If updating the cljdoc-analyzer itself would help, we can do that. |
Ok @holyjak, I've poked around and thought it over.
To me, it looks like we have ease-of-use competing with replicating cljdoc production. So... how about this? When cljdoc-analyzer is run as a tool the
Seem good? |
It does! |
On Slack, @hlship was wondering why the check action doesn't use the
pom.xml
within the built jar.The cljdoc analyzer, when used as a clojure tool, seems to want the
pom.xml
to also exist in the current dir:Maybe because technically the jar does not have to contain the pom?
But 99% of folks do bundle it in.
Also, these days, a
pom.xml
, if it exists in a project root, is often a template for the generatedpom.xml
. So it would not be appropriate.The text was updated successfully, but these errors were encountered: