apache/openwhisk-runtime-go

Cannot build the runtime

lionelvillard opened this issue · 2 comments

I followed these instructions. I'm getting this error:


FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':tests:testCompileClasspath'.
> Could not find org.apache.openwhisk:openwhisk-tests:1.0.0-SNAPSHOT.
  Searched in the following locations:
      https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/maven-metadata.xml
      https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/openwhisk-tests-1.0.0-SNAPSHOT.pom
      https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/openwhisk-tests-1.0.0-SNAPSHOT-tests.jar
  Required by:
      project :tests

note that ./gradlew distDocker works as expected. Maybe ./gradlew build is not needed anymore and the readme should be fixed?

actually the build, as the other runtimes, expects you have already installed locally in a maven repository the test jars as they historically were not published in maven central. Also since to run the tests you need to have built the docker images, the procedure is:

  1. do a ./gradlew install of the openwhisk repo
  2. ./gradlew -x test distDocker
  3. ./gradlew test

patches to cleanup this situation are welcome