leo9827 commented on issue #28096:
URL: https://github.com/apache/beam/issues/28096#issuecomment-1717313136

   I try to do this and it works:
   first, comment 'RUN go get github.com/linkedin/goavro/v2' in 
`start-build-env.sh`
   second, run `start-build-env.sh`
   now, if there dont have other questions you will in `[Beam Build Env]:~/beam`
   and then do this:
   ```
   cd $GOPATH && go get github.com/linkedin/goavro/v2 && cd -
   ```
   it will download the package: github.com/linkedin/goavro/v2 in 
`./pkg/mod/github`
   
   ---
   I try to add this to `start-build-env.sh`'s Dockerfile content but it's not 
working:
   ```bash
   ...
   ENV GOPATH ${DOCKER_HOME_DIR}/beam/sdks/go/examples/.gogradle/project_gopath
   # switch to GOPATH to run go get command
   WORKDIR ${DOCKER_HOME_DIR}/beam/sdks/go/examples/.gogradle/project_gopath/src
   COPY . .
   # This next command still runs as root causing the ~/.cache/go-build to be 
owned by root
   RUN go get github.com/linkedin/goavro/v2
   ...
   ```
   
   


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

Reply via email to