[ 
https://issues.apache.org/jira/browse/BEAM-11608?focusedWorklogId=584534&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-584534
 ]

ASF GitHub Bot logged work on BEAM-11608:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Apr/21 22:17
            Start Date: 16/Apr/21 22:17
    Worklog Time Spent: 10m 
      Work Description: ebarreraWL commented on a change in pull request #14475:
URL: https://github.com/apache/beam/pull/14475#discussion_r615147655



##########
File path: local-env-setup.sh
##########
@@ -0,0 +1,124 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+darwin_install_pip3_packages() {
+    echo "Installing setuptools grpcio-tools virtualenv"
+    pip3 install setuptools grpcio-tools virtualenv
+    echo "Installing mypy-protobuf"
+    pip3 install --user mypy-protobuf
+}
+
+install_go_packages(){
+        echo "Installing goavro"
+        go get github.com/linkedin/goavro
+        # As we are using bash, we are assuming .bashrc exists. 
+        grep -qxF "export 
GOPATH='${pwd}/sdks/go/examples/.gogradle/project_gopath'" ~/.bashrc || echo 
"export GOPATH='${pwd}/sdks/go/examples/.gogradle/project_gopath'" >> ~/.bashrc

Review comment:
       Changed the logic to set the `GOPATH` variable only for the script 
session if it's not found in `.bashrc ` and added an `echo` to remind the user 
to add it manually.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 584534)
    Time Spent: 1h 50m  (was: 1h 40m)

> Development environment set up automation
> -----------------------------------------
>
>                 Key: BEAM-11608
>                 URL: https://issues.apache.org/jira/browse/BEAM-11608
>             Project: Beam
>          Issue Type: Wish
>          Components: build-system, website
>            Reporter: Tyson Hamilton
>            Assignee: Eduardo Barrera
>            Priority: P3
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The manual steps in the contribution guide should be combined into a single 
> command for users. For example, this could be done by putting all manual 
> steps into a shell script.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to