Re: Go error when building containers

2020-07-27 Thread Brian Hulette
On Mon, Jul 27, 2020 at 3:08 PM Robert Bradshaw wrote: > On Mon, Jul 27, 2020 at 2:25 PM Kyle Weaver wrote: > >> I had a similar issue [1] that I resolved by running Brian's shell >> one-liner. However, it also deleted a bunch of checked-in vendor >> directories, which is presumably undesirable.

Re: Go error when building containers

2020-07-27 Thread Robert Bradshaw
On Mon, Jul 27, 2020 at 2:25 PM Kyle Weaver wrote: > I had a similar issue [1] that I resolved by running Brian's shell > one-liner. However, it also deleted a bunch of checked-in vendor > directories, which is presumably undesirable. > > > I thought there was a clean gradle target already, for t

Re: Go error when building containers

2020-07-27 Thread Kyle Weaver
I had a similar issue [1] that I resolved by running Brian's shell one-liner. However, it also deleted a bunch of checked-in vendor directories, which is presumably undesirable. > I thought there was a clean gradle target already, for the go gradle plugin. But that's probably mistaken. `./gradlew

Re: Go error when building containers

2020-07-27 Thread Robert Burke
I thought there was a clean gradle target already, for the go gradle plugin. But that's probably mistaken. The correct answer is to probably provide both. The more direct documentation of the solution and the attempt to automate it. Any suggestions about where to put auch documentation? Should it

Re: Go error when building containers

2020-07-27 Thread Robert Bradshaw
Is this documented somewhere (other than now here)? Maybe we should make a "clean" gradle target for this? On Fri, Jul 24, 2020 at 7:19 PM Robert Burke wrote: > Yup that is and always has been the right answer. > > I can't look up the JIRA right now but once I've finished schemas, the > plan is

Re: Go error when building containers

2020-07-24 Thread Robert Burke
Yup that is and always has been the right answer. I can't look up the JIRA right now but once I've finished schemas, the plan is to get Go Modules working which will be a much more reliable solution. On Fri, Jul 24, 2020, 5:19 PM Brian Hulette wrote: > Spoke with Daniel about this offline and h

Re: Go error when building containers

2020-07-24 Thread Brian Hulette
Spoke with Daniel about this offline and he suggested deleting all the vendor directories. I ran `find . -name vendor | xargs -I{} rm -rf {}` from my Beam clone and all is well now. On Fri, Jul 24, 2020 at 11:13 AM Brian Hulette wrote: > I tried removing every .gogradle directory in Beam, as wel

Re: Go error when building containers

2020-07-24 Thread Brian Hulette
I tried removing every .gogradle directory in Beam, as well as ~/.cache/go-build and ~/.gradle/go/repo but it's still happening. Maybe there's some other cache I'm missing? I also synced past https://github.com/apache/beam/pull/12364 in case it was related. I thought maybe others were having the s

Re: Go error when building containers

2020-07-23 Thread Daniel Oliveira
It looks like the cached version of a package is stale and causing build errors when building beam. Chances are just deleting that /.gogradle directory will cause everything to rebuild from a clean state, so I'd try that. I think it should be /sdks/go/.gogradle On Thu, Jul 23, 2020 at 4:56 PM Ahme

Re: Go error when building containers

2020-07-23 Thread Ahmet Altay
This is probably : https://issues.apache.org/jira/browse/BEAM-10567 On Thu, Jul 23, 2020 at 4:53 PM Brian Hulette wrote: > Whenever I build a container locally > (:sdks:java:container:docker, :sdks:python:container:py37:docker, ..) I get > a Go

Go error when building containers

2020-07-23 Thread Brian Hulette
Whenever I build a container locally (:sdks:java:container:docker, :sdks:python:container:py37:docker, ..) I get a Go error (log at the end of this message). I've discovered I can just comment out resolveBuildDependencies.dependsOn ":sdks:go:goBuild" in the relevant build.gradle file [1] whenever