Skip to content

Commit f7e688f

Browse files
Merge pull request #1046 from newrelic/go_modules_update
Go modules update
2 parents 631d037 + 2dc7e0d commit f7e688f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
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
@@ -22,9 +22,11 @@
2222

2323
- name: Initialize and tidy Go modules
2424
shell: |
25-
cd /home/ec2-user/templates &&
25+
mkdir -p /home/ec2-user/go/pkg/mod &&
26+
mkdir -p /home/ec2-user/go/bin &&
2627
export GOPATH=/home/ec2-user/go &&
2728
export GOBIN=/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

test/manual/definitions/apm/go/go-linux2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"id": "go-l2",
1111
"provider": "aws",
1212
"type": "ec2",
13-
"size": "t3.medium",
13+
"size": "t3.small",
1414
"ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
1515
"user_name": "ec2-user"
1616
}

0 commit comments

Comments
 (0)