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. >