Skip to content

Commit d2b7d0e

Browse files
authored
x/net v0.22.0 => x/net v0.24.0 (#88)
1 parent e373ceb commit d2b7d0e

File tree

7 files changed

+15
-28
lines changed

7 files changed

+15
-28
lines changed

.golangci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
run:
22
allow-parallel-runners: true
3-
go: '1.21'
3+
go: '1.22'
44

55
output:
6-
format: 'colored-line-number'
76
print-issued-lines: true
87
print-linter-name: true
98
sort-results: true
@@ -25,6 +24,7 @@ linters:
2524
- varnamelen
2625
- interfacer
2726
- scopelint
27+
- intrange
2828
- deadcode
2929
- maligned
3030
- varcheck
@@ -39,7 +39,6 @@ linters-settings:
3939
errcheck:
4040
check-type-assertions: true
4141
govet:
42-
check-shadowing: true
4342
enable-all: true
4443
cyclop:
4544
max-complexity: 15

.goreleaser.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ archives:
3434
- crawley-bin
3535
name_template: >-
3636
{{ .ProjectName }}_
37+
{{- .Tag }}_
3738
{{- .Os }}_
3839
{{- if eq .Arch "amd64" }}x86_64
3940
{{- else if eq .Arch "386" }}i386
40-
{{- else }}{{ .Arch }}{{ end }}_
41-
{{- .Tag }}
41+
{{- else }}{{ .Arch }}{{ end }}
4242
format_overrides:
4343
- goos: windows
4444
format: zip
@@ -47,8 +47,8 @@ nfpms:
4747
- id: packages
4848
file_name_template: >-
4949
{{ .ProjectName }}_
50-
{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_
51-
{{ .Tag }}
50+
{{- .Tag }}_
51+
{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
5252
homepage: https://github.com/s0rg/crawley
5353
description: Unix-way web crawler, written in Golang.
5454
maintainer: s0rg

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ require (
66
github.com/s0rg/compflag v1.1.0
77
github.com/s0rg/set v1.2.0
88
github.com/tdewolff/parse/v2 v2.7.12
9-
golang.org/x/net v0.22.0
9+
golang.org/x/net v0.24.0
1010
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/
66
github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA=
77
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52 h1:gAQliwn+zJrkjAHVcBEYW/RFvd2St4yYimisvozAYlA=
88
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE=
9-
golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
10-
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
9+
golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w=
10+
golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=

internal/crawler/util_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ func TestRelativeDepth(t *testing.T) {
8484

8585
t.Parallel()
8686

87-
for _, tt := range tests {
88-
tc := tt
89-
87+
for _, tc := range tests {
9088
t.Run(tc.name, func(t *testing.T) {
9189
t.Parallel()
9290

@@ -150,9 +148,7 @@ func TestCanCrawl(t *testing.T) {
150148
{"url3-3", args{b: base, u: url3, d: 0}, false},
151149
}
152150

153-
for _, tt := range tests {
154-
tc := tt
155-
151+
for _, tc := range tests {
156152
t.Run(tc.name, func(t *testing.T) {
157153
t.Parallel()
158154

internal/links/clean_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ func TestClean(t *testing.T) {
3434
{"result-api", args{b: testBase, r: "/api/v1/user"}, testRes4, true},
3535
}
3636

37-
for _, tt := range tests {
38-
tc := tt
39-
37+
for _, tc := range tests {
4038
t.Run(tc.name, func(t *testing.T) {
4139
t.Parallel()
4240

internal/links/html_test.go

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ func TestExtractTag(t *testing.T) {
4141
{name: "bad", args: args{b: testBase, t: &tBAD, k: "a"}, wantU: ""},
4242
}
4343

44-
for _, tt := range tests {
45-
tc := tt
46-
44+
for _, tc := range tests {
4745
t.Run(tc.name, func(t *testing.T) {
4846
t.Parallel()
4947

@@ -196,9 +194,7 @@ func TestExtractToken(t *testing.T) {
196194
},
197195
}
198196

199-
for _, tt := range tests {
200-
tc := tt
201-
197+
for _, tc := range tests {
202198
t.Run(tc.name, func(t *testing.T) {
203199
t.Parallel()
204200

@@ -316,9 +312,7 @@ func TestExtractURLS(t *testing.T) {
316312
},
317313
}
318314

319-
for _, tt := range tests {
320-
tc := tt
321-
315+
for _, tc := range tests {
322316
t.Run(tc.name, func(t *testing.T) {
323317
t.Parallel()
324318

0 commit comments

Comments
 (0)