Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies update + go1.22 #86

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: goreleaser-check
Expand All @@ -36,14 +36,14 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
- name: tests-only
if: ${{ github.event_name == 'pull_request' }}
run: make test
- name: test-coverage
if: ${{ github.event_name == 'push' }}
if: ${{ false && github.event_name == 'push' }}
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand All @@ -61,9 +61,9 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
- name: init codeql
uses: github/codeql-action/init@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: set up golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
- name: build
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/s0rg/crawley

go 1.21
go 1.22

require (
github.com/s0rg/compflag v1.1.0
github.com/s0rg/set v1.2.0
github.com/tdewolff/parse/v2 v2.7.10
golang.org/x/net v0.20.0
github.com/tdewolff/parse/v2 v2.7.11
golang.org/x/net v0.21.0
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ github.com/s0rg/compflag v1.1.0 h1:xhCUPLy+5Ue/Q9I/nIcLti2Ul6P42JYx4UvtYoDXmlQ=
github.com/s0rg/compflag v1.1.0/go.mod h1:XMntVpc3+jpmBe0s8xo4w9swH8T9ARGkMC9HFiDRoUw=
github.com/s0rg/set v1.2.0 h1:53b207YMktNQJXYei/oHuTR5oOO2e9+eieZOncYsh9g=
github.com/s0rg/set v1.2.0/go.mod h1:xz3nDbjF4nyMLvAHvmE7rigXpNrKKTsi6iANznIB1/4=
github.com/tdewolff/parse/v2 v2.7.10 h1:itheTX7WBPxGI1eo+8HQ6QVGH+ubr3Lpv98YJVtqqRo=
github.com/tdewolff/parse/v2 v2.7.10/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA=
github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8=
github.com/tdewolff/parse/v2 v2.7.11/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.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo=
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
2 changes: 2 additions & 0 deletions internal/crawler/crawler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ func TestCrawlerOK(t *testing.T) {
switch r.Method {
case http.MethodHead:
gotHEAD = true

w.Header().Add(contentType, contentHTML)

case http.MethodGet:
if gotHEAD {
gotGET = true
}

_, _ = io.WriteString(w, body)
}
}))
Expand Down
1 change: 1 addition & 0 deletions internal/crawler/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func TestRelativeDepth(t *testing.T) {
if gotDepht != tc.wantDepht {
t.Errorf("pathDepth() gotDepht = %v, want %v", gotDepht, tc.wantDepht)
}

if gotFound != tc.wantFound {
t.Errorf("pathDepth() gotFound = %v, want %v", gotFound, tc.wantFound)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/links/css.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func extractCSSURL(v []byte) (rv string, ok bool) {

rv = string(bytes.Trim(v[o+1:c], codeCleanChars))

return rv, len(rv) > 0
return rv, rv != ""
}
Loading