echocat / gradle-golang-plugin

Gradle plugin to build, test and do other stuff of Golang projects.
https://github.com/echocat/gradle-golang-plugin
Mozilla Public License 2.0
44 stars 8 forks source link

What is importExtractor (this plugin wants to run this program) #5

Closed ghost closed 7 years ago

ghost commented 7 years ago
$ gradle build
:validate
:prepare-toolchain
:get-tools UP-TO-DATE
:prepare-sources
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> java.io.IOException: Cannot run program "~/.go/sdk/go1.6.2/bin/importsExtractor": error=2, No such file or directory

What is this program and why do you think I should have it? (This is the directory where this plugin downloads its stuff).

blaubaer commented 7 years ago

importExtractor is genereted while prepareToolchain task. It is used to resolve the dependency tree. If you exclude the prepareToolchain task this failure will occur in the build steps.

Could you verify this?

blaubaer commented 7 years ago

I was able to reproduce the bug also with working prepareToolchain task. I will fix this.