Bo Zhang

Results 166 comments of Bo Zhang

``` repositories { golang { root 'testpackage' emptyDir() } } ``` 和 ``` golang { ignorePackage('testpackage') } ``` 设计上是等价的,如果没有生效那就是有问题了,能否请你删除`.gogradle`文件夹进行一次"清洁"的构建,再试一下?

好的,谢谢,我会调查的。

请在C项目根目录下执行`git log vendor/code.xxx.com/project/D`。 详见[git log文档](https://git-scm.com/docs/git-log)。

差不多就是这样的。因为没有别的信息可以告诉我们D的版本,所以把“D提交到C的vendor的时间”作为D的时间戳,会存在“版本比较旧,但是提交时间比较新,它强制覆盖掉了其他版本”的情况。这个从一开始就是这样设计的,如果有问题就需要手工强制指定它的版本,一级依赖的优先级最高。

**优先级最高**的意思是,它存在的话其他任何版本都会被舍弃。

Actually, if you write like this: ``` build { targetPlatform = ['windows-amd64', 'linux-amd64', 'linux-386'] } ``` This would generate 3 isolated tasks: - `BuildWindowsAmd64` - `BuildLinuxAmd64` - `BuildLinux386` Could you...

@eloo Why not try to get the os/arch from Java system property? https://stackoverflow.com/questions/20856694/how-to-find-the-os-bit-type @timleung22 You'd use ``` build { targetPlatform = ['windows-amd64', 'linux-386', 'darwin-amd64'] go 'build -o ./output/${GOOS}_${GOARCH}_${PROJECT_NAME}${GOEXE} github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc' }...

Try https://github.com/gogradle/gogradle/blob/master/docs/getting-started.md#custom-task ``` task myBuildTask(type: com.github.blindpirate.gogradle.Go) { dependsOn vendor // make this task depend on vendor task to guarantee all dependency packages are installed into vendor environment MY_OWN_ENV1: 'value1', MY_OWN_ENV1:...

Thanks for reporting, can I have a minimum reproducible sample please?

Thanks for the information, I'll take care of it. > On 29 Jul 2018, at 8:08 AM, John Roach wrote: > > Hi, > > Thank you for creating this...