Skip to content

Commit 02ca2b5

Browse files
Merge pull request #36 from noelmcloughlin/version
chore(version): increase default version
2 parents 67a9476 + 97e3f3a commit 02ca2b5

File tree

7 files changed

+15
-40
lines changed

7 files changed

+15
-40
lines changed

golang/config/alternatives/clean.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ golang-package-archive-remove-home-alternative-remove:
2020
- require:
2121
- sls: {{ sls_archive_clean if golang.pkg.use_upstream_archive else sls_package_clean }}
2222
23-
{% for i in ['go', 'godoc', 'gofmt'] %}
23+
{% for i in ('go', 'gofmt') %}
2424
2525
golang-package-archive-remove-{{ i }}-alternative-remove:
2626
alternatives.remove:

golang/config/alternatives/install.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ golang-package-archive-install-home-alternative-set:
4141
- alternatives: golang-package-archive-install-home-alternative-install
4242
- unless: {{ grains.os_family in ('Suse',) }}
4343
44-
{% for i in ['go', 'godoc', 'gofmt'] %}
44+
{% for i in ('go', 'gofmt') %}
4545
4646
golang-package-archive-install-{{ i }}-alternative-install:
4747
cmd.run:

golang/config/environ.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ golang-config-file-managed-environ_file:
2929
- sls: {{ sls_archive_install if golang.pkg.use_upstream_archive else sls_package_install }}
3030
3131
32-
{% for i in ('go', 'godoc', 'gofmt') %}
32+
{% for i in ('go', 'gofmt') %}
3333
3434
# create symlink under certain conditions
3535
# archlinux, freebsd, macos for now

golang/defaults.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# vim: ft=yaml
33
---
44
golang:
5-
version: '1.10.1'
5+
version: 1.14.2
66
go_path: /usr/local/golang/packages # non-default GOPATH
77
rootuser: root
88
rootgroup: root
@@ -13,16 +13,16 @@ golang:
1313
archive:
1414
name: /usr/local
1515
uri: https://storage.googleapis.com/golang
16-
source: None
17-
source_hash: None
18-
trim_output: true # works in 2018.3.2. onwards
16+
source: null
17+
source_hash: null
18+
trim_output: true
1919
archive_suffix: tar.gz
2020
archive_format: tar
2121
enforce_toplevel: true
2222
repo: {}
2323

2424
# Provided in `map.jinja` via. `grains.kernel`
25-
kernel: ''
25+
kernel: null
2626
config: '/etc/golang'
2727
environ_file: /etc/default/golang.sh
2828
environ: []
@@ -37,7 +37,7 @@ golang:
3737
altpriority: 0
3838
# for linux alternatives only
3939
base_dir: ''
40-
dir: /usr/local/go # go_root
40+
dir: /usr/local/go # go_root, depreciated
4141

4242
cmd:
4343
goget: []

golang/osfamilymap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FreeBSD:
2626
rootgroup: wheel
2727
pkg:
2828
archive:
29-
source: https://storage.googleapis.com/golang/go1.10.2.freebsd-386.tar.gz
29+
source: https://storage.googleapis.com/golang/go1.14.2.freebsd-386.tar.gz
3030

3131
OpenBSD:
3232
rootgroup: wheel
@@ -42,9 +42,9 @@ Windows:
4242
pkg:
4343
archive:
4444
name: 'C:\\Program Files\\'
45-
source: https://storage.googleapis.com/golang/go1.10.1.linux-amd64.tar.gz
45+
source: https://storage.googleapis.com/golang/go1.14.2.linux-amd64.tar.gz
4646

4747
MacOS:
4848
pkg:
4949
archive:
50-
source: https://storage.googleapis.com/golang/go1.10.2.darwin-amd64.tar.gz
50+
source: https://storage.googleapis.com/golang/go1.14.2.darwin-amd64.tar.gz

test/integration/default/controls/archives_spec.rb

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,10 @@
55
title 'should be installed'
66
desc 'Ensure golang tarball archive was extracted correctly'
77

8-
describe file('/usr/local/go1.10.1.linux-amd64/go') do
8+
describe file('/usr/local/go1.14.2.linux-amd64/go') do
99
it { should be_directory }
1010
it { should be_owned_by 'root' }
1111
it { should be_grouped_into 'root' }
1212
its('mode') { should cmp '0755' }
1313
end
14-
15-
require 'digest'
16-
binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/go').content
17-
Digest::SHA256.hexdigest(binary)
18-
describe file('/usr/local/go1.10.1.linux-amd64/go/bin/go') do
19-
# rubocop:disable LineLength
20-
its('sha256sum') { should eq '11438a2d41e257519e8c0ad098c287f9f73f1b8382a012a0c10e1dee5fb1e8ae' }
21-
# rubocop:enable LineLength
22-
end
23-
24-
binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc').content
25-
Digest::SHA256.hexdigest(binary)
26-
describe file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc') do
27-
# rubocop:disable LineLength
28-
its('sha256sum') { should eq '4076bb73349f253c04e5ef214934938760eefb26529f22d2e6fdbd61b99bb4b5' }
29-
# rubocop:enable LineLength
30-
end
31-
32-
binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt').content
33-
Digest::SHA256.hexdigest(binary)
34-
describe file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt') do
35-
# rubocop:disable LineLength
36-
its('sha256sum') { should eq '5673f5914f195331322b20aee026f1882dac7c92b61c41bae23a04fb803b3e2c' }
37-
# rubocop:enable LineLength
38-
end
3914
end

test/integration/default/controls/environ_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
its('mode') { should cmp '0644' }
1111
its('content') { should include 'Your changes may be overwritten' }
1212
# rubocop:disable LineLength
13-
its('content') { should include 'export GOROOT=/usr/local/go1.10.1.linux-amd64' }
13+
its('content') { should include 'export GOROOT=/usr/local/go1.14.2.linux-amd64' }
1414
its('content') { should include 'export GOPATH=/usr/local/golang/packages' }
15-
its('content') { should include 'export PATH=${PATH}:/usr/local/go1.10.1.linux-amd64/go/bin' }
15+
its('content') { should include 'export PATH=${PATH}:/usr/local/go1.14.2.linux-amd64/go/bin' }
1616
# rubocop:enable LineLength
1717
end
1818
end

0 commit comments

Comments
 (0)