Skip to content

Commit

Permalink
x/net v0.22.0 => x/net v0.24.0 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0rg authored Apr 6, 2024
1 parent e373ceb commit d2b7d0e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 28 deletions.
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
run:
allow-parallel-runners: true
go: '1.21'
go: '1.22'

output:
format: 'colored-line-number'
print-issued-lines: true
print-linter-name: true
sort-results: true
Expand All @@ -25,6 +24,7 @@ linters:
- varnamelen
- interfacer
- scopelint
- intrange
- deadcode
- maligned
- varcheck
Expand All @@ -39,7 +39,6 @@ linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
enable-all: true
cyclop:
max-complexity: 15
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ archives:
- crawley-bin
name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}_
{{- .Tag }}
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand All @@ -47,8 +47,8 @@ nfpms:
- id: packages
file_name_template: >-
{{ .ProjectName }}_
{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_
{{ .Tag }}
{{- .Tag }}_
{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
homepage: https://github.com/s0rg/crawley
description: Unix-way web crawler, written in Golang.
maintainer: s0rg
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ require (
github.com/s0rg/compflag v1.1.0
github.com/s0rg/set v1.2.0
github.com/tdewolff/parse/v2 v2.7.12
golang.org/x/net v0.22.0
golang.org/x/net v0.24.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/
github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA=
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52 h1:gAQliwn+zJrkjAHVcBEYW/RFvd2St4yYimisvozAYlA=
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE=
golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w=
golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
8 changes: 2 additions & 6 deletions internal/crawler/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ func TestRelativeDepth(t *testing.T) {

t.Parallel()

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

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

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 1 addition & 3 deletions internal/links/clean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ func TestClean(t *testing.T) {
{"result-api", args{b: testBase, r: "/api/v1/user"}, testRes4, true},
}

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
12 changes: 3 additions & 9 deletions internal/links/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ func TestExtractTag(t *testing.T) {
{name: "bad", args: args{b: testBase, t: &tBAD, k: "a"}, wantU: ""},
}

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -196,9 +194,7 @@ func TestExtractToken(t *testing.T) {
},
}

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -316,9 +312,7 @@ func TestExtractURLS(t *testing.T) {
},
}

for _, tt := range tests {
tc := tt

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit d2b7d0e

Please sign in to comment.