Excellent!

These days go has become much simpler to deal with (nearly any folder with
a go.mod is a go project) but legacy GOPATH things remain to confuse
matters.

When I'm at a computer I'll see how necessary that line was for beam go
development with that env script.

I'd run one of the container building gradle tasks to be sure everything is
working properly do you don't run into a surprise later. It should be the
only spot building Go for the non-go SDKs at the moment.

On Fri, Mar 22, 2024, 6:00 AM Joey Tran <joey.t...@schrodinger.com> wrote:

> Woohoo it works! How could I forget the oldest trick in the book "just
> delete the problematic line"
>
> Thanks for the quick response. I am unblocked now :)
>
> On Fri, Mar 22, 2024 at 8:47 AM Robert Burke <rob...@frantil.com> wrote:
>
>> It's not clear to me why that's even requesting that package at all. I
>> would remove that 'go get' line.
>>
>> There's a different issue at play here too since it was written for
>> pre-module Go in mind. I'm unfamiliar with that script though.
>>
>> I'll take a proper look in a few hours.
>>
>> On Fri, Mar 22, 2024, 5:25 AM Joey Tran <joey.t...@schrodinger.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I've been banging my head trying to get a dev environment working. I
>>> gave up trying to get a local python environment working after I got some
>>> weird clang errors and proto generation issues so I've been trying to just
>>> use the docker container by running `bash  start-build-env.sh` but I'm
>>> running into issues installing goavro.
>>>
>>> ```
>>>  => ERROR [7/8] RUN go get github.com/linkedin/goavro/v2
>>>                                               0.2s
>>> ------
>>>  > [7/8] RUN go get github.com/linkedin/goavro/v2:
>>> 0.190 go: go.mod file not found in current directory or any parent
>>> directory.
>>> 0.190   'go get' is no longer supported outside a module.
>>> 0.190   To build and install a command, use 'go install' with a version,
>>> 0.190   like 'go install example.com/cmd@latest'
>>> 0.190   For more information, see
>>> https://golang.org/doc/go-get-install-deprecation
>>> 0.190   or run 'go help get' or 'go help install'.
>>> ------
>>> Dockerfile:10
>>> --------------------
>>>    8 |     ENV GOPATH
>>> /home/jtran/beam/sdks/go/examples/.gogradle/project_gopath
>>>    9 |     # This next command still runs as root causing the
>>> ~/.cache/go-build to be owned by root
>>>   10 | >>> RUN go get github.com/linkedin/goavro/v2
>>>   11 |     RUN chown -R jtran:100 /home/jtran/.cache
>>>   12 |
>>> ```
>>>
>>> I have no familiarity go or go packacing and my googling hasn't yielded
>>> much insight.
>>>
>>> Any advice? I'm on an M2 mac, go version 1.21.1. I've tried setting
>>> GO111MODULE to various values as well.
>>>
>>

Reply via email to