Update to go 1.19 (#351)

This commit is contained in:
Jamie Holdstock 2022-08-12 16:30:23 +01:00 committed by GitHub
parent e23e3729e8
commit c961423e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -6,20 +6,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.17, 1.18]
go: [1.18, 1.19]
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- name: Build
run: go build ./...
- name: Test
run: env GORACE="halt_on_error=1" go test -race ./...
- name: Lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc #v3.2.0
with:
version: v1.45.2
version: v1.48.0

2
.gitignore vendored
View File

@ -9,6 +9,6 @@ cov.out
/database/test.db
/database/test.db-backup
# Go 1.18 workspace
# Go workspace
go.work
go.work.sum

View File

@ -43,7 +43,7 @@ VSP will add the ticket to a pool of always-online voting wallets.
## Implementation
vspd is built and tested on go 1.17 and 1.18, making use of the following
vspd is built and tested on go 1.18 and 1.19, making use of the following
libraries:
- [gin-gonic/gin](https://github.com/gin-gonic/gin) webserver.

View File

@ -161,10 +161,10 @@ func normalizeAddress(addr, defaultPort string) string {
// line options.
//
// The configuration proceeds as follows:
// 1) Start with a default config with sane settings
// 2) Pre-parse the command line to check for an alternative config file
// 3) Load configuration file overwriting defaults with any specified options
// 4) Parse CLI options and overwrite/add any specified options
// 1. Start with a default config with sane settings
// 2. Pre-parse the command line to check for an alternative config file
// 3. Load configuration file overwriting defaults with any specified options
// 4. Parse CLI options and overwrite/add any specified options
//
// The above results in vspd functioning properly without any config settings
// while still allowing the user to override settings with config files and