marblejenka opened a new issue, #33400: URL: https://github.com/apache/beam/issues/33400
### What happened? `start-build-env.sh` fails due to `go get` [depreciation](https://go.dev/doc/go-get-install-deprecation). ``` admin_@cloudshell:~/beam (s2bootstrap-strong-redbird)$ ./start-build-env.sh [+] Building 273.3s (24/24) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.99kB 0.0s => [internal] load metadata for docker.io/library/ubuntu:20.04 2.5s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [ 1/19] FROM docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 3.0s => => resolve docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 0.0s => => sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 6.69kB / 6.69kB 0.0s => => sha256:e5a6aeef391a8a9bdaee3de6b28f393837c479d8217324a2340b64e45a81e0ef 424B / 424B 0.0s => => sha256:6013ae1a63c2ee58a8949f03c6366a3ef6a2f386a7db27d86de2de965e9f450b 2.30kB / 2.30kB 0.0s => => sha256:d9802f032d6798e2086607424bfe88cb8ec1d6f116e11cd99592dcaf261e9cd2 27.51MB / 27.51MB 1.0s => => extracting sha256:d9802f032d6798e2086607424bfe88cb8ec1d6f116e11cd99592dcaf261e9cd2 1.8s => [internal] load build context 0.0s => => transferring context: 8.63kB 0.0s => [ 2/19] WORKDIR /root 0.4s => [ 3/19] RUN echo APT::Install-Recommends "0"; > /etc/apt/apt.conf.d/10disableextras 0.3s => [ 4/19] RUN echo APT::Install-Suggests "0"; >> /etc/apt/apt.conf.d/10disableextras 0.3s => [ 5/19] RUN apt -q update && apt install -y software-properties-common apt-utils apt-transport-https ca-certificates && add-apt-repository -y ppa:deadsnakes/ppa && apt 42.7s => [ 6/19] RUN mkdir /package 0.3s => [ 7/19] COPY pkglist /package/pkglist 0.0s => [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat) 189.3s => [ 9/19] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen 2.6s => [10/19] RUN alias python=python3.6 0.3s => [11/19] RUN pip3 install grpcio-tools mypy-protobuf 9.3s => [12/19] RUN pip3 install distlib==0.3.1 yapf==0.29.0 pytest 3.2s => [13/19] RUN wget https://golang.org/dl/go1.23.1.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz 6.7s => [14/19] RUN mkdir /scripts 0.3s => [15/19] COPY beam_env_checks.sh /scripts/beam_env_checks.sh 0.1s => [16/19] COPY bashcolors.sh /scripts/bashcolors.sh 0.0s => [17/19] RUN chmod 755 /scripts /scripts/beam_env_checks.sh /scripts/bashcolors.sh 0.3s => [18/19] RUN echo '. /etc/bash_completion' >> /root/.bash_aliases 0.3s => [19/19] RUN echo '. /scripts/beam_env_checks.sh' >> /root/.bash_aliases 0.3s => exporting to image 10.9s => => exporting layers 10.9s => => writing image sha256:07f9f60272358e6676023ecca04aa7c167efb3e8aef7b581f3fd321e953c16e1 0.0s => => naming to docker.io/library/beam-build 0.0s [+] Building 3.0s (10/11) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 583B 0.0s => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 7) 0.0s => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 8) 0.0s => [internal] load metadata for docker.io/library/beam-build:latest 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/8] FROM docker.io/library/beam-build:latest 0.3s => [2/8] RUN rm -f /var/log/faillog /var/log/lastlog 0.3s => [3/8] RUN groupadd --non-unique -g 1000 admin_ 0.3s => [4/8] RUN groupmod -g 996 docker 0.3s => [5/8] RUN useradd -g 1000 -G docker -u 1000 -k /root -m admin_ -d "/home/admin_" 1.1s => [6/8] RUN echo "admin_ ALL=NOPASSWD: ALL" > "/etc/sudoers.d/beam-build-1000" 0.3s => ERROR [7/8] RUN go get github.com/linkedin/goavro/v2 0.3s ------ > [7/8] RUN go get github.com/linkedin/goavro/v2: 0.261 go: go.mod file not found in current directory or any parent directory. 0.261 'go get' is no longer supported outside a module. 0.261 To build and install a command, use 'go install' with a version, 0.261 like 'go install example.com/cmd@latest' 0.261 For more information, see https://golang.org/doc/go-get-install-deprecation 0.261 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 7) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 8) Dockerfile:10 -------------------- 8 | ENV GOPATH /home/admin_/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 admin_:1000 /home/admin_/.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 ``` ### Issue Priority Priority: 3 (minor) ### Issue Components - [ ] Component: Python SDK - [ ] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [ ] Component: IO connector - [ ] Component: Beam YAML - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Infrastructure - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [ ] Component: Google Cloud Dataflow Runner -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
