Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 1bdc995

Browse files
committed
Upgrade go version to 1.7
Boulder needs the goose plugin to function, which requires the go-sql-driver, which no longer supports go =< 1.6 [1]. This causes the boulder cookbook to fail. [1] go-sql-driver/mysql#696
1 parent 12b97af commit 1bdc995

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

recipes/default.rb

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
node.default['mariadb']['use_default_repository'] = true
3636
node.default['mariadb']['install']['version'] = '10.1'
37+
node.default['go']['version'] = '1.7'
3738

3839
include_recipe 'build-essential'
3940
include_recipe 'mariadb::server'

spec/unit/recipes/default_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ChefSpec::SoloRunner.new(p).converge(described_recipe)
88
end
99
before do
10-
stub_command('/usr/local/go/bin/go version | grep "go1.5 "')
10+
stub_command('/usr/local/go/bin/go version | grep "go1.7 "')
1111
stub_command('screen -list boulder | /bin/grep 1\ Socket\ in')
1212
end
1313
it 'converges successfully' do

test/integration/default/serverspec/server_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
describe command('curl http://boulder:4000/directory') do
66
its(:stdout) { should match(%r{"new-cert": "http://127.0.0.1:4000/acme/new-cert"}) }
77
end
8+
9+
describe command('/usr/local/go/bin/go version') do
10+
its(:stdout) { should match /go1\.7/ }
11+
end

0 commit comments

Comments
 (0)