Closed JD557 closed 11 months ago
Thanks for reporting! Would you be able to take a look at it maybe and see if there is a way to work around it?
Would it just be the case of checking if we are on windows and running yarn.cmd
in those cases? Or should we do it only as a fallback?
I'll try to check next week once I'm back at my normal machine.
I think it should be enough to call yarn.cmd
on windows, but I want to double check that other install methods (e.g. via npm
) also need that.
A fallback would probably also work.
So, chocolatey seems to install yarn on
C:\Program Files (x86)\Yarn\bin
, which contains the following files:yarn.cmd
contains a windows launcher whileyarn
contains a Unix launcher.So, running
scala.sys.process.Process("yarn").!
does not work, it should bescala.sys.process.Process("yarn.cmd").!
As such
docusaurusCreateSite
is failing in https://github.com/scalameta/mdoc/blob/26a176c79eb61fb94c57862fe49074d0b61279f9/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala#L124-L125