Skip to content

Commit 85657f1

Browse files
committed
chore:updated go modules export paths in deploy config
1 parent 631d037 commit 85657f1

File tree

1 file changed

+3
-1
lines changed
  • test/deploy/linux/go/redhat/roles/configure/tasks

1 file changed

+3
-1
lines changed

test/deploy/linux/go/redhat/roles/configure/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
msg: Install go
44

55
- name: Install go
6-
shell: yum install go -y
6+
shell: yum install go -y && yum install perl
77
become: true
88

99
- name: Create templates directory
@@ -25,6 +25,8 @@
2525
cd /home/ec2-user/templates &&
2626
export GOPATH=/home/ec2-user/go &&
2727
export GOBIN=/home/ec2-user/go/bin &&
28+
mkdir -p /home/ec2-user/go/bin &&
29+
export GOMODCACHE=/home/ec2-user/go/pkg/mod &&
2830
go mod init home/ec2-user/templates &&
2931
go mod tidy
3032
become: true

0 commit comments

Comments
 (0)