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

ZIO SBT Website Throws Exception When Running The Project Inside a Directory Without Initialized a Git #395

Open
khajavi opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@khajavi
Copy link
Member

khajavi commented May 8, 2024

An example of such an error occurred on the ZIO‌ HTTP‌ project:

zio-http: Step 7/9 : RUN sbt assembly
zio-http:  ---> Running in 4c7a6f3b412b
zio-http: [info] [launcher] getting org.scala-sbt sbt 1.9.0  (this may take some time)...
zio-http: [info] [launcher] getting Scala 2.12.18 (for sbt)...
zio-http: [info] welcome to sbt 1.9.0 (Oracle Corporation Java 11.0.12)
zio-http: [info] loading settings for project zio-http-build from plugins.sbt ...
zio-http: [info] loading project definition from /zio-http/project
zio-http: [info] loading settings for project root from build.sbt ...
zio-http: [info] loading settings for project zio-http-build from plugins.sbt ...
zio-http: [info] loading project definition from /zio-http/zio-http/project
zio-http: [info] compiling 8 Scala sources to /zio-http/zio-http/project/target/scala-2.12/sbt-1.0/classes ...
zio-http: [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.18. Compiling...
zio-http: [info]   Compilation completed in 8.151s.
zio-http: [info] done compiling
zio-http: *** shading enabled: false (env.PUBLISH_SHADED=None, sysprops.`publish.shaded`=None)
zio-http: [info] loading settings for project root from aliases.sbt,build.sbt,global.sbt ...
zio-http: [info] resolving key references (14307 settings) ...
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: [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.
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: [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.
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: [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.
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: [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.
zio-http: fatal: not a git repository (or any of the parent directories): .git
zio-http: java.lang.RuntimeException: Nonzero exit value: 128
zio-http: 	at scala.sys.package$.error(package.scala:30)
zio-http: 	at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:138)
zio-http: 	at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:108)
zio-http: 	at zio.sbt.WebsitePlugin$.hashVersion(WebsitePlugin.scala:251)
zio-http: 	at zio.sbt.WebsitePlugin$.$anonfun$docsVersionTask$4(WebsitePlugin.scala:229)
zio-http: 	at scala.Option.getOrElse(Option.scala:189)
zio-http: 	at zio.sbt.WebsitePlugin$.$anonfun$docsVersionTask$1(WebsitePlugin.scala:229)
zio-http: 	at sbt.internal.util.EvaluateSettings$MixedNode.evaluate0(INode.scala:228)
zio-http: 	at sbt.internal.util.EvaluateSettings$INode.evaluate(INode.scala:170)
zio-http: 	at sbt.internal.util.EvaluateSettings.$anonfun$submitEvaluate$1(INode.scala:87)
zio-http: 	at sbt.internal.util.EvaluateSettings.sbt$internal$util$EvaluateSettings$$run0(INode.scala:99)
zio-http: 	at sbt.internal.util.EvaluateSettings$$anon$3.run(INode.scala:94)
zio-http: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
zio-http: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:[628](https://github.com/zio/zio-http/actions/runs/9000773991/job/24726063846#step:5:629))
zio-http: 	at java.base/java.lang.Thread.run(Thread.java:829)
zio-http: [error] Nonzero exit value: 128
zio-http: [error] Use 'last' for the full log.
@khajavi khajavi added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant