kaocha

Hukka 2022-03-02T08:16:09.273669Z

Seems like https://cljdoc.org/d/lambdaisland/kaocha/1.63.998/doc/readme shows a build error for the docs. https://app.circleci.com/pipelines/github/cljdoc/builder/28501/workflows/ac6027e3-a6b2-4f02-892a-1589cd4fe450/jobs/44876 lists it as

"Execution error (FileNotFoundException) at kaocha.type.spec.test.fdef/eval7290$loading (fdef.clj:1).\nCould not locate orchestra/spec/test__init.class, orchestra/spec/test.clj or orchestra/spec/test.cljc on classpath.\n",
though I'm not sure if that's the real error, or caused by something deeper

plexus 2022-03-03T09:45:26.036219Z

thanks for the heads up, we need to signal to cljdoc that it needs these optional dependencies. I'll get it fixed.

Hukka 2022-03-03T11:31:22.361449Z

I read a bit of cljdoc docs. Seems like it reads pom.xml only, nothing from deps.edn. No idea how the pom should be generated in these cases where the deps are for dev or test env only. Or should the whole fdef be even included in the scan for documentation, since it's not meant for external use?

plexus 2022-03-03T14:53:06.581869Z

this is all handled in our lambda island tooling for releasing libraries

plexus 2022-03-03T14:55:05.078789Z

This line: https://github.com/lambdaisland/kaocha/blob/main/bin/proj#L26

:aliases-as-optional-deps [:test]

plexus 2022-03-03T14:56:03.461379Z

causes them to get added to the pom.xml with optional=true https://github.com/lambdaisland/open-source/blob/main/src/lioss/pom.clj#L27-L30

plexus 2022-03-03T14:56:20.977799Z

so that should hopefully fix it with the next release

Hukka 2022-03-02T08:27:59.725369Z

Hm, the circle logs don't show that it would even download orchestra. Could it be that it's not using the :test alias, thus misses all the extra-deps?