37 Commits

Author SHA1 Message Date
jholdstock
5263bfc2e1 build: Update golangci-lint to v2.0.2
Various changes in this new major version, including a new config file
format:

- "gofmt" and "goimports" are now categorized as formatters
  (instead of linters) and are moved to their own section.
- The functionality of "gosimple" has been bundled into "staticcheck".
- "typecheck" is now always on and cannot be independently
  enabled/disabled.
2025-04-15 09:34:37 +01:00
jholdstock
713ee511bd ci: Update GitHub Actions & linter. 2025-02-28 09:04:56 +00:00
jholdstock
16753b34a0 build: Bump minimum go version 1.23 2025-02-28 09:04:56 +00:00
jholdstock
caf02de645 Update golangci-lint to 1.61.0. 2024-10-16 16:36:51 +01:00
jholdstock
690b06412a ci: Update tested go versions to 1.22 and 1.23. 2024-09-05 10:31:37 +01:00
jholdstock
caca0b45d0 ci: Update GitHub Actions and linter. 2024-09-05 10:31:37 +01:00
Jamie Holdstock
63b2a6117d
Use latest golangci-lint release and update linter list. (#484)
* ci: Update linter to 1.59.1.

Also remove deprecated linter "vetshadow", its functionality is now
included in the "govet" linter.

* ci: Add new linters.

- fatcontext - Detects nested contexts in loops.
- mirror - Reports wrong mirror patterns of bytes/strings usage.
- nilnil - Checks that there is no simultaneous return of nil error and
  an invalid value.
- usestdlibvars - detect the possibility to use variables/constants from
  the Go standard library.
2024-07-08 09:52:43 -04:00
jholdstock
15590a6dda ci: Update GitHub actions. 2024-05-14 09:19:17 +01:00
jholdstock
2fef5d29eb ci: Update linter to 1.58.1. 2024-05-14 09:19:17 +01:00
Jamie Holdstock
6a72321ddb build: Update build to go 1.22. 2024-02-16 08:47:03 +08:00
jholdstock
1b9587c000 build: Use latest GitHub Actions 2024-01-12 08:51:54 +00:00
jholdstock
fe8e63a295 build: Use latest golangci-linter. 2023-08-24 07:52:40 +01:00
jholdstock
45addd2a18 build: Use go 1.21 & update GitHub actions. 2023-08-18 14:32:30 +01:00
Jamie Holdstock
203bf7d2e6
build: Update linter to 1.53.2 (#384)
* build: Update linter to 1.53.2

* database: Rename helpers.go to encoding.go

* database: Ignore json.Marshal errors.
2023-06-05 09:39:01 -05:00
jholdstock
67910d0fb3 build: Update to go 1.20. 2023-02-17 20:45:01 +00:00
Jamie Holdstock
68047dc6ce build: Ensure ci lints all modules.
Use run_tests.sh in CI because the official golangci-lint GitHub action does not handle submodules.
2022-11-26 09:46:36 +08:00
Jamie Holdstock
a5998264b3
Include commit ID in build info. (#357)
* ci: Update GitHub actions and linter.

* Update go deps.

* Include commit ID in build info.

Introduced in go 1.18, debug.ReadBuildInfo allows a go process to discover the git commit it was built from.
2022-11-18 15:06:00 -05:00
Jamie Holdstock
11401c5369
Move vspd into cmd directory. (#352)
* Update linter to 1.49.0

* Move vspd into cmd directory.

This is standard practise in Decred golang repos. Especially useful when multiple executables are built from a single repo.

* Ignore bins in new dir.
2022-09-27 08:54:23 -05:00
Jamie Holdstock
c961423e9e
Update to go 1.19 (#351) 2022-08-12 10:30:23 -05:00
jholdstock
78abc59e97 Update for go 1.18 2022-03-28 16:37:39 +01:00
jholdstock
2d67a35ba5 Use golangci-lint GitHub action.
- Rather than manually downloading and invoking golangci-lint, use the GitHub
action provided by the developers.
- Configure golangci with a config file rather than passing command line args.
This enables the same config to be used locally and on CI without introducing
duplication. It also allows much more flexibililty in configuration than using
CLI args alone.
2022-03-21 14:49:40 +00:00
David Hill
0fd96388ce
build: bump dcr deps (#310) 2021-12-29 11:23:45 +00:00
Jamie Holdstock
83253f3c19
Use go 1.16 features (#292)
* Use features from Go 1.16 tooling.

- GO111MODULE environment variable now defaults to "on"
- "go build" and "go test" now exit with an error rather than silently modifying go.mod or go.sum files
- Update README.md

* Don't use deprecated ioutil package.
2021-08-26 09:29:43 -05:00
David Hill
9ef8834187
build: test against Go 1.17 (#291) 2021-08-22 12:34:30 -05:00
Jamie Holdstock
136e389f95 Update to golangci-lint 1.40.1.
Linter `golint` has been deprecated and replaced with `revive`.
2021-05-23 11:37:54 +08:00
David Hill
2581f84b59
build: update dcrwallet mod (#237) 2021-03-09 15:29:26 +00:00
David Hill
4b43711b03
build: Test against Go 1.16 (#236) 2021-03-01 12:32:22 +00:00
Jamie Holdstock
91701b1a17
Update dcrd/blockchain dep (#230) 2021-01-22 19:20:53 +00:00
David Hill
bd6b2e42f4
build: upgrade deps (#210) 2020-11-25 14:52:21 +00:00
David Hill
04b07346c8 build: bump deps 2020-11-09 17:00:25 +00:00
David Hill
c83a2a0085
rpc: verify dcrwallet's have --manualtickets set. (#187) 2020-09-25 09:55:53 +01:00
jholdstock
2f0c5149ac Update to go 1.15 2020-08-17 19:13:33 +00:00
David Hill
b8c6ffe1e0
rpc: set tls options (#168)
* rpc: set tls options

* build: golangci-lint v1.30.0
2020-08-06 09:00:35 +01:00
David Hill
de9c6b428e
background: handle fee transaction doublespends (#164) 2020-07-31 08:55:28 +01:00
jholdstock
94f9031dcb Fail build if go mod tidy/download changes 2020-07-09 21:01:40 +00:00
jholdstock
8fe044d5ef Run CI script directly, not through sh 2020-05-14 13:58:34 +01:00
Jamie Holdstock
b45bbf8896
Enable CI through GitHub Actions (#4) 2020-05-14 13:53:48 +01:00