Skip to content
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

Error When Installing ZIO SBT on Non Git Projects #339

Open
khajavi opened this issue Jan 19, 2024 · 0 comments
Open

Error When Installing ZIO SBT on Non Git Projects #339

khajavi opened this issue Jan 19, 2024 · 0 comments

Comments

@khajavi
Copy link
Member

khajavi commented Jan 19, 2024

When we try to install ZIO SBT on a non git project, it throws the following errors:

[info] welcome to sbt 1.9.8 (Oracle Corporation Java 11.0.19)
[info] loading settings for project global-plugins from idea.sbt ...
[info] loading global plugins from /home/milad/.sbt/1.0/plugins
[info] loading settings for project hello-scala-build from plugins.sbt ...
[info] loading project definition from /home/milad/tmp/hello-scala/project
[info] loading settings for project root from build.sbt ...
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
[warn] Could not determine release version from git tags, will return 'None' instead.  This is most likely a result of this project not having a git repo initialized.  See previous log messages for more detail.
[warn] Could not determine release version from git tags, will return 'None' instead.  This is most likely a result of this project not having a git repo initialized.  See previous log messages for more detail.
[warn] Could not determine release version from git tags, will return 'None' instead.  This is most likely a result of this project not having a git repo initialized.  See previous log messages for more detail.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
java.lang.RuntimeException: Nonzero exit value: 128
        at scala.sys.package$.error(package.scala:30)
        at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:138)
        at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:108)
        at zio.sbt.WebsitePlugin$.hashVersion(WebsitePlugin.scala:251)
        at zio.sbt.WebsitePlugin$.$anonfun$docsVersionTask$4(WebsitePlugin.scala:229)
        at scala.Option.getOrElse(Option.scala:189)
        at zio.sbt.WebsitePlugin$.$anonfun$docsVersionTask$1(WebsitePlugin.scala:229)
        at sbt.internal.util.EvaluateSettings$MixedNode.evaluate0(INode.scala:229)
        at sbt.internal.util.EvaluateSettings$INode.evaluate(INode.scala:171)
        at sbt.internal.util.EvaluateSettings.$anonfun$submitEvaluate$1(INode.scala:88)
        at sbt.internal.util.EvaluateSettings.sbt$internal$util$EvaluateSettings$$run0(INode.scala:100)
        at sbt.internal.util.EvaluateSettings$$anon$3.run(INode.scala:95)[warn] Could not determine release version from git tags, will return 'None' instead.  This is most likely a result of this project not having a git repo initialized.  See previous log messages for more detail.

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
[error] Nonzero exit value: 128
[error] Use 'last' for the full log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant