Skip to content

Commit f27ac93

Browse files
authored
fix canonyze doubles between -1 and 1 (#99)
* fix canonyze doubles between -1 and 1 * Update json-gold to most recent master
1 parent 2ed935a commit f27ac93

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/ci-lint.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-go@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
1414
with:
15-
go-version: 1.21.6
16-
- uses: golangci/golangci-lint-action@v3
15+
go-version: 1.23.4
16+
- uses: golangci/golangci-lint-action@v6
1717
with:
18-
version: v1.55.1
18+
version: v1.62.2

.golangci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ service:
33

44
run:
55
timeout: 2m
6-
skip-dirs:
6+
exclude-dirs:
77
- vendor
88

99
linters-settings:
1010
govet:
11-
check-shadowing: true
11+
shadow: true
1212
revive:
1313
min-confidence: 0.1
1414
rules:
@@ -28,12 +28,10 @@ linters-settings:
2828
linters:
2929
enable:
3030
- bodyclose
31-
- megacheck
3231
- revive
3332
- govet
3433
- unconvert
35-
- megacheck
36-
- gas
34+
- gosec
3735
- gocyclo
3836
- dupl
3937
- misspell
@@ -42,7 +40,6 @@ linters:
4240
- ineffassign
4341
- stylecheck
4442
- gochecknoinits
45-
- exportloopref
4643
- gocritic
4744
- nakedret
4845
- gosimple
@@ -51,6 +48,8 @@ linters:
5148
- goimports
5249
- gofmt
5350
- errcheck
51+
- staticcheck
52+
- exportloopref
5453

5554
fast: false
5655
disable-all: true

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ require (
1010
// stable version. After the release of version 0.5.1 or later, it will be
1111
// necessary to update to the stable version.
1212
// https://github.com/piprate/json-gold/commit/36fcca9d7e487684a764e552e7d837a14546a157
13-
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
13+
// and this
14+
// https://github.com/piprate/json-gold/commit/19254b3ec65b01ad353de8412ae7ba10857258cf
15+
github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b
1416
github.com/pkg/errors v0.9.1
1517
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35
1618
github.com/santhosh-tekuri/jsonschema/v5 v5.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
1616
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
1717
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
1818
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
19-
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f h1:HlPa7RcxTCrva5izPfTEfvYecO7LTahgmMRD1Qp13xg=
20-
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f/go.mod h1:WZ501QQMbZZ+3pXFPhQKzNwS1+jls0oqov3uQ2WasLs=
19+
github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b h1:xyh6boGzDR4EpdEDe9ix1KhHNgOSiBjBocahA6FalEQ=
20+
github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
2121
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
2222
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
2323
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

0 commit comments

Comments
 (0)