To my knowledge, the "dev" docker image is unmaintained, and has been for
quite some time, hence not having been moved to Go Modules and similar.

I personally don't have time to delve into what's going on with it, but
IIRC, deleting the weird goavro lines would be a good first step.

I'd be happy to review any PRs to help fix it though, if you get it working
for yourself. (Tag lostluck in GitHub).

I think if you search the dev list, you might find previous discussions on
the topic of the dev container.

Robert Burke


On Thu, Sep 19, 2024, 2:17 PM Joey Tran <joey.t...@schrodinger.com> wrote:

> 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