Update to go 1.19 (#351)
This commit is contained in:
parent
e23e3729e8
commit
c961423e9e
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
@ -6,20 +6,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.17, 1.18]
|
go: [1.18, 1.19]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
- name: Check out source
|
- name: Check out source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build ./...
|
run: go build ./...
|
||||||
- name: Test
|
- name: Test
|
||||||
run: env GORACE="halt_on_error=1" go test -race ./...
|
run: env GORACE="halt_on_error=1" go test -race ./...
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc #v3.2.0
|
||||||
with:
|
with:
|
||||||
version: v1.45.2
|
version: v1.48.0
|
||||||
|
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,6 +9,6 @@ cov.out
|
|||||||
/database/test.db
|
/database/test.db
|
||||||
/database/test.db-backup
|
/database/test.db-backup
|
||||||
|
|
||||||
# Go 1.18 workspace
|
# Go workspace
|
||||||
go.work
|
go.work
|
||||||
go.work.sum
|
go.work.sum
|
||||||
|
|||||||
@ -43,7 +43,7 @@ VSP will add the ticket to a pool of always-online voting wallets.
|
|||||||
|
|
||||||
## Implementation
|
## 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:
|
libraries:
|
||||||
|
|
||||||
- [gin-gonic/gin](https://github.com/gin-gonic/gin) webserver.
|
- [gin-gonic/gin](https://github.com/gin-gonic/gin) webserver.
|
||||||
|
|||||||
@ -161,10 +161,10 @@ func normalizeAddress(addr, defaultPort string) string {
|
|||||||
// line options.
|
// line options.
|
||||||
//
|
//
|
||||||
// The configuration proceeds as follows:
|
// The configuration proceeds as follows:
|
||||||
// 1) Start with a default config with sane settings
|
// 1. Start with a default config with sane settings
|
||||||
// 2) Pre-parse the command line to check for an alternative config file
|
// 2. Pre-parse the command line to check for an alternative config file
|
||||||
// 3) Load configuration file overwriting defaults with any specified options
|
// 3. Load configuration file overwriting defaults with any specified options
|
||||||
// 4) Parse CLI options and overwrite/add any specified options
|
// 4. Parse CLI options and overwrite/add any specified options
|
||||||
//
|
//
|
||||||
// The above results in vspd functioning properly without any config settings
|
// The above results in vspd functioning properly without any config settings
|
||||||
// while still allowing the user to override settings with config files and
|
// while still allowing the user to override settings with config files and
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user