Hi,

I'm trying again to get a working development image of beam. Working from
the beam repo CONTRIBUTING.md, I ran `./start-build-env.sh`

At image build time after getting a few steps in, the build fails with:

=> ERROR [7/8] RUN go get github.com/linkedin/goavro/v2

 > [7/8] RUN go get github.com/linkedin/goavro/v2:


0.134 go: go.mod file not found in current directory or any parent
directory.
0.134   'go get' is no longer supported outside a module.

0.134   To build and install a command, use 'go install' with a version,

0.134   like 'go install example.com/cmd@latest'

0.134   For more information, see
https://golang.org/doc/go-get-install-deprecation
0.134   or run 'go help get' or 'go help install'.
------
 2 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy
"ENV key value" format (line 8)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy
"ENV key value" format (line 7)
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 |
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c go get
github.com/linkedin/goavro/v2" did not complete successfully: exit code: 1


Any tips?
Cheers,
-- 

Joey Tran

[image: Schrödinger, Inc.] <https://schrodinger.com/>

Reply via email to