Bo Zhang
Bo Zhang
Might be a kotlin DSL issue. Could you please share your `build.gradle.kts`?
I didn't see ``` dependencies { golang { build("github.com/spf13/cobra") } } ``` in you script, do you mean adding it to this script will cause error?
Thanks, I've confirmed this issue. I think this would be a kotlin dsl related issue and I need to consult some kotlin-dsl-experts.
Thanks, we work together, I'll ask them for help :-)
``` diff --git a/src/main/java/com/github/blindpirate/gogradle/task/go/GoTest.java b/src/main/java/com/github/blindpirate/gogradle/task/go/GoTest.java index bb822ea1..d1daff5c 100644 --- a/src/main/java/com/github/blindpirate/gogradle/task/go/GoTest.java +++ b/src/main/java/com/github/blindpirate/gogradle/task/go/GoTest.java @@ -49,6 +49,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import java.util.stream.Collectors; import static com.github.blindpirate.gogradle.common.GoSourceCodeFilter.SourceSetType.PROJECT_TEST_AND_VENDOR_BUILD_FILES; import...
Running with `--info` and check out the message please, I guess it's the JVM certification issue.
Well, do you mind sharing the build script or a simple sample so I can take a look?
1. You're right. We should keep them sorted. 2. Let's say we have a package with following structure: ``` root ├── a.go └── sub └── b.go ``` - `...` all...
The real logic exists in https://github.com/gogradle/gogradle/blob/a1137a588eb19ee41ed2e1855b71219f9506781c/src/main/java/com/github/blindpirate/gogradle/task/GoInstall.java#L63 However, I have no idea about you intention, but in gogradle's point of view, vendor is a temp workspace where files can be added...
Currently there's no option for test: https://github.com/gogradle/gogradle/blob/60f1dd75bbe43f7961bc973ee0098f8c364bb8f2/src/main/java/com/github/blindpirate/gogradle/task/go/GoTest.java#L259 Here is what it does - execute `go test -v ` per package.