Skip to content

Commit c877a37

Browse files
authored
use Go v1.17 (#12)
1 parent fb900d6 commit c877a37

File tree

9 files changed

+21
-43
lines changed

9 files changed

+21
-43
lines changed

.github/Brewfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
tap "golangci/tap"
22
tap "kyoh86/tap"
3-
tap "sonatype-nexus-community/nancy-tap"
43
tap "sv-tools/apps"
54

65
# Fast linters runner for Go.
76
brew "golangci/tap/golangci-lint"
87
# Rich-Go will enrich `go test` outputs with text decorations
98
brew "kyoh86/tap/richgo"
10-
# A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
11-
brew "sonatype-nexus-community/nancy-tap/nancy"
129
# bumptag is a tool to increment a version and to create a git tag with an annotation.
1310
brew "sv-tools/apps/bumptag"

.github/workflows/checks.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ on:
1111
- cron: "0 0 * * 0"
1212

1313
env:
14-
GO: 1.16
14+
GO: 1.17
1515

1616
jobs:
1717
CodeQL:
18-
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1918
runs-on: ubuntu-latest
2019

20+
permissions:
21+
security-events: write
22+
2123
steps:
2224
- name: Checkout repository
2325
uses: actions/checkout@v2
2426

25-
# Initializes the CodeQL tools for scanning.
2627
- name: Initialize CodeQL
2728
uses: github/codeql-action/init@v1
2829
with:
@@ -69,21 +70,3 @@ jobs:
6970
version: latest
7071
skip-build-cache: true
7172
skip-go-installation: true
72-
73-
Nancy:
74-
runs-on: ubuntu-latest
75-
76-
steps:
77-
- name: Checkout repository
78-
uses: actions/checkout@v2
79-
80-
- name: Install Go
81-
uses: actions/setup-go@v2
82-
with:
83-
go-version: ${{ env.GO }}
84-
85-
- name: Prepare go list
86-
run: go list -json -m all > go.list
87-
88-
- name: Run Nancy
89-
uses: sonatype-nexus-community/nancy-github-action@v1.0.2

.github/workflows/release.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "v[0-9]+.[0-9]+.[0-9]+"
99

1010
env:
11-
GO: 1.16
11+
GO: 1.17
1212

1313
jobs:
1414
bump-version:
@@ -31,20 +31,17 @@ jobs:
3131
git config user.name "sv-tools-bot"
3232
git config user.email "sv.go.tools@gmail.com"
3333
git fetch --all
34-
3534
- name: Create Tag
3635
run: |
3736
docker run --rm -v $PWD:/mount -w /mount svtools/bumptag:latest ${{ github.event.milestone.title }}
38-
3937
- name: Push Tag
4038
run: git push origin --tags
4139

4240
- name: Create Milestone
43-
uses: WyriHaximus/github-action-create-milestone@v1.1
41+
uses: sv-tools/create-milestone-action@v1.0.0
4442
with:
43+
token: "${{ secrets.GITHUB_TOKEN }}"
4544
title: Next
46-
env:
47-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4845

4946
release-lib:
5047
if: github.event_name == 'push'

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ linters:
1616
- gocyclo
1717
- goerr113
1818
- gofumpt
19-
- golint
2019
- goprintffuncname
2120
- gosec
2221
- ifshort

.nancy-ignore

Whitespace-only changes.

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(shell uname), Darwin)
77
all: brew-install
88
endif
99

10-
all: tidy lint nancy test done
10+
all: tidy lint test done
1111

1212
done:
1313
@echo "$(OK_COLOR)==> Done.$(NO_COLOR)"
@@ -26,10 +26,6 @@ run-benchmark:
2626

2727
test: run-test run-benchmark
2828

29-
nancy:
30-
@echo "$(OK_COLOR)==> Checking Vulnerability via nancy...$(NO_COLOR)"
31-
@go list -json -m all | nancy sleuth --quiet
32-
3329
lint:
3430
@echo "$(OK_COLOR)==> Linting via golangci-lint...$(NO_COLOR)"
3531
@golangci-lint run --fix ./...

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
The [conf](https://github.com/sv-tools/conf) reader for Environment Variables.
99

10-
1110
## License
1211

1312
MIT licensed. See the bundled [LICENSE](LICENSE) file for more details.

go.mod

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
module github.com/sv-tools/conf-reader-env
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/stretchr/testify v1.7.0
7-
github.com/sv-tools/conf v0.1.1
7+
github.com/sv-tools/conf v1.2.1
8+
)
9+
10+
require (
11+
github.com/davecgh/go-spew v1.1.1 // indirect
12+
github.com/pmezard/go-difflib v1.0.0 // indirect
13+
github.com/spf13/cast v1.4.1 // indirect
14+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
815
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
44
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
55
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
6-
github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
7-
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
6+
github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA=
7+
github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
88
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
99
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
1010
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
1111
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
12-
github.com/sv-tools/conf v0.1.1 h1:vzMSot3YpgaiwHjWUPFSo0kOBvjqeolRhbhrM9G9yRk=
13-
github.com/sv-tools/conf v0.1.1/go.mod h1:yx9N9+paAqxMANswxDSWIzYMImkFcfRA1U+FL/Vd6yM=
12+
github.com/sv-tools/conf v1.2.1 h1:vxUFIU1TA5XFukIidPS2PH3bS8wq1O73+uZ7xEIInCE=
13+
github.com/sv-tools/conf v1.2.1/go.mod h1:OaofESH1b31AhuR6oHHSoAt6pdcBouIELgwVPoQx6kc=
1414
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1515
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1616
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=

0 commit comments

Comments
 (0)