This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b30295  Traffic Ops scripts: Do not set GOPATH (#6311)
9b30295 is described below

commit 9b30295c0f300b263d0182a29630c761bee79a6b
Author: Zach Hoffman <[email protected]>
AuthorDate: Fri Nov 12 16:34:34 2021 +0000

    Traffic Ops scripts: Do not set GOPATH (#6311)
---
 CHANGELOG.md                             | 1 +
 traffic_ops/etc/profile.d/traffic_ops.sh | 9 +--------
 traffic_ops/install/bin/_postinstall.pl  | 3 +--
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0208eb2..a240220 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -46,6 +46,7 @@ The format is based on [Keep a 
Changelog](http://keepachangelog.com/en/1.0.0/).
 
 ### Removed
 - Removed the `user_role` table.
+- The `traffic_ops.sh` shell profile no longer sets `GOPATH` or adds its `bin` 
folder to the `PATH`
 
 ## [6.0.0] - 2021-08-30
 ### Added
diff --git a/traffic_ops/etc/profile.d/traffic_ops.sh 
b/traffic_ops/etc/profile.d/traffic_ops.sh
index 6d29842..cf2f74a 100644
--- a/traffic_ops/etc/profile.d/traffic_ops.sh
+++ b/traffic_ops/etc/profile.d/traffic_ops.sh
@@ -12,11 +12,4 @@
 # limitations under the License.
 #
 
-TO_DIR="/opt/traffic_ops/app"; export TO_DIR
-
-# Setup GOPATH
-GOPATH="/opt/traffic_ops/go"; export GOPATH
-GOBIN=$GOPATH/bin
-
-# Setup PATH
-PATH=$PATH:$GOBIN:/usr/local/go/bin
+export TO_DIR=/opt/traffic_ops/app;
diff --git a/traffic_ops/install/bin/_postinstall.pl 
b/traffic_ops/install/bin/_postinstall.pl
index b530173..980328c 100755
--- a/traffic_ops/install/bin/_postinstall.pl
+++ b/traffic_ops/install/bin/_postinstall.pl
@@ -17,8 +17,7 @@
 use lib qw(/opt/traffic_ops/install/lib /opt/traffic_ops/app/lib 
/opt/traffic_ops/app/local/lib/perl5);
 
 $ENV{PERL5LIB} = 
"/opt/traffic_ops/install/lib:/opt/traffic_ops/app/lib:/opt/traffic_ops/app/local/lib/perl5:$ENV{PERL5LIB}";
-$ENV{PATH}     = 
"/usr/bin:/opt/traffic_ops/go/bin:/usr/local/go/bin:/opt/traffic_ops/install/bin:$ENV{PATH}";
-$ENV{GOPATH} = "/opt/traffic_ops/go";
+$ENV{PATH}     = 
"/usr/bin:/usr/local/go/bin:/opt/traffic_ops/install/bin:$ENV{PATH}";
 
 use strict;
 use warnings;

Reply via email to