energywebfoundation / ocn-node

Apache License 2.0
5 stars 4 forks source link

Gradle build expects build/generated-snippets to exist #20

Closed ewf-devops closed 3 years ago

ewf-devops commented 3 years ago

Original report by Christopher Cook (Bitbucket: [Christopher Cook](https://bitbucket.org/Christopher Cook), ).


On a new machine (Ubuntu) the gradle build expects the the path build/generated-snippetsto exist otherwise the build will fail with the following error:

> Task :asciidoctor FAILED                                                                                                  

FAILURE: Build failed with an exception.                                                                                    

* What went wrong:                                                                                                          
A problem was found with the configuration of task ':asciidoctor' (type 'AsciidoctorTask').                                 
> Directory '/home/ubuntu/ocn/ocn-node/build/generated-snippets' specified for property '$1' does not exist. 

Creating this path manually allows the build to proceed normally.

ewf-devops commented 3 years ago

Original comment by John Henderson (Bitbucket: [John Henderson](https://bitbucket.org/John Henderson), GitHub: jrhender).


Thanks for logging this issue Christopher. We will look into it.

ewf-devops commented 3 years ago

Original comment by John Henderson (Bitbucket: [John Henderson](https://bitbucket.org/John Henderson), GitHub: jrhender).


Currently being worked on

ewf-devops commented 3 years ago

Original comment by John Henderson (Bitbucket: [John Henderson](https://bitbucket.org/John Henderson), GitHub: jrhender).


@{5d3ecbdbe4777b0db2f0b49f} and I investigated this. This error message can be reproduced by running ./gradlew build -x test . What occurs is that the test task, which generates the build/generated-snippets directory, is skipped which then causes the asciidoctor task to fail because it expects the build/generated-snippets path to exist. Our tutorial/demo documentation at one point suggested that users run ./gradlew build -x test but that has been removed as the ocn-node docker image is now used.