Skip to content

Commit d787bc3

Browse files
authored
Upgrade colly dep (keybase#26270)
1 parent c5056f6 commit d787bc3

6 files changed

Lines changed: 50 additions & 28 deletions

File tree

‎go/chat/unfurl/scrape_generic.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
"github.com/keybase/client/go/libkb"
1010

11+
"github.com/gocolly/colly/v2"
1112
"github.com/keybase/client/go/chat/attachments"
1213
"github.com/keybase/client/go/protocol/chat1"
13-
"github.com/keybase/colly"
1414
)
1515

1616
func fullURL(hostname, path string) string {

‎go/chat/unfurl/scrape_generic_scoring.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strconv"
66
"strings"
77

8+
"github.com/gocolly/colly/v2"
89
"github.com/keybase/client/go/protocol/chat1"
9-
"github.com/keybase/colly"
1010
)
1111

1212
// Contents are scored based on source. Higher scores win but falsey values

‎go/chat/unfurl/scrape_giphy.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010

1111
"github.com/keybase/client/go/libkb"
1212

13+
"github.com/gocolly/colly/v2"
1314
"github.com/keybase/client/go/chat/giphy"
1415
"github.com/keybase/client/go/protocol/chat1"
15-
"github.com/keybase/colly"
1616
)
1717

1818
var giphyFavicon = "https://giphy.com/static/img/icons/apple-touch-icon-180px.png"

‎go/chat/unfurl/scraper.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package unfurl
33
import (
44
"context"
55

6+
"github.com/gocolly/colly/v2"
67
"github.com/keybase/client/go/chat/globals"
78
"github.com/keybase/client/go/chat/utils"
89
"github.com/keybase/client/go/libkb"
910
"github.com/keybase/client/go/protocol/chat1"
10-
"github.com/keybase/colly"
1111
"github.com/keybase/go-framed-msgpack-rpc/rpc"
1212
)
1313

‎go/go.mod‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
bazil.org/fuse v0.0.0-20200424023519-3c101025617f
77
camlistore.org v0.0.0-20161205184337-c55c8602d3ce
8-
github.com/PuerkitoBio/goquery v1.0.0
8+
github.com/PuerkitoBio/goquery v1.5.1
99
github.com/akavel/rsrc v0.2.1-0.20151103204339-ba14da1f8271
1010
github.com/araddon/dateparse v0.0.0-20180729174819-cfd92a431d0e
1111
github.com/blang/semver v3.5.1+incompatible
@@ -31,7 +31,6 @@ require (
3131
github.com/keybase/backoff v1.0.1-0.20160517061000-726b63b835ec
3232
github.com/keybase/cli v1.2.1-0.20191217150554-9323fd7ddfab
3333
github.com/keybase/clockwork v0.1.1-0.20161209210251-976f45f4a979
34-
github.com/keybase/colly v1.1.1-0.20190207010505-9a56fbe6c0e6
3534
github.com/keybase/go-codec v0.0.0-20180928230036-164397562123
3635
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
3736
github.com/keybase/go-framed-msgpack-rpc v0.0.0-20230103225103-1f052922b096
@@ -89,6 +88,7 @@ require (
8988
require (
9089
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
9190
github.com/aws/aws-sdk-go v1.49.13
91+
github.com/gocolly/colly/v2 v2.1.1-0.20231020184023-3c987f1982ed
9292
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
9393
github.com/keybase/dbus v0.0.0-20220506165403-5aa21ea2c23a
9494
gopkg.in/alecthomas/kingpin.v2 v2.2.6
@@ -115,15 +115,16 @@ require (
115115
github.com/alexkohler/nakedret/v2 v2.0.2 // indirect
116116
github.com/alexkohler/prealloc v1.0.0 // indirect
117117
github.com/alingse/asasalint v0.0.11 // indirect
118-
github.com/andybalholm/cascadia v0.0.0-20150730174459-3ad29d1ad1c4 // indirect
118+
github.com/andybalholm/cascadia v1.3.1 // indirect
119119
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 // indirect
120-
github.com/antchfx/htmlquery v0.0.0-20180925020018-98389addba3d // indirect
121-
github.com/antchfx/xmlquery v0.0.0-20181024140136-98cdbc3221ed // indirect
122-
github.com/antchfx/xpath v0.0.0-20180922041825-3de91f3991a1 // indirect
120+
github.com/antchfx/htmlquery v1.2.3 // indirect
121+
github.com/antchfx/xmlquery v1.3.4 // indirect
122+
github.com/antchfx/xpath v1.1.10 // indirect
123123
github.com/asaskevich/govalidator v0.0.0-20180319081651-7d2e70ef918f // indirect
124124
github.com/ashanbrown/forbidigo v1.6.0 // indirect
125125
github.com/ashanbrown/makezero v1.1.1 // indirect
126126
github.com/beorn7/perks v1.0.1 // indirect
127+
github.com/bits-and-blooms/bitset v1.2.2-0.20220111210104-dfa3e347c392 // indirect
127128
github.com/bkielbasa/cyclop v1.2.1 // indirect
128129
github.com/blevesearch/blevex v0.0.0-20190916190636-152f0fe5c040 // indirect
129130
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
@@ -172,7 +173,6 @@ require (
172173
github.com/go-toolsmith/typep v1.1.0 // indirect
173174
github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect
174175
github.com/gobwas/glob v0.2.4-0.20181002190808-e7a84e9525fe // indirect
175-
github.com/gocolly/colly v1.1.1-0.20190204140905-b3032e87d3ef // indirect
176176
github.com/gofrs/flock v0.8.1 // indirect
177177
github.com/golang/protobuf v1.5.2 // indirect
178178
github.com/golang/snappy v0.0.4 // indirect
@@ -238,6 +238,7 @@ require (
238238
github.com/nf/cr2 v0.0.0-20140528043846-05d46fef4f2f // indirect
239239
github.com/nishanths/exhaustive v0.11.0 // indirect
240240
github.com/nishanths/predeclared v0.2.2 // indirect
241+
github.com/nlnwa/whatwg-url v0.1.2 // indirect
241242
github.com/nunnatsa/ginkgolinter v0.14.0 // indirect
242243
github.com/olekukonko/tablewriter v0.0.5 // indirect
243244
github.com/pelletier/go-buffruneio v0.3.0 // indirect
@@ -290,7 +291,7 @@ require (
290291
github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect
291292
github.com/tdakkota/asciicheck v0.2.0 // indirect
292293
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
293-
github.com/temoto/robotstxt v0.0.0-20180810133444-97ee4a9ee6ea // indirect
294+
github.com/temoto/robotstxt v1.1.1 // indirect
294295
github.com/tetafro/godot v1.4.15 // indirect
295296
github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect
296297
github.com/timonwong/loggercheck v0.9.4 // indirect

0 commit comments

Comments
 (0)