Skip to content

Commit

Permalink
bump ipinfo to 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
UmanShahzad committed May 23, 2022
1 parent e37c8ad commit c9c68ad
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 29 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ brew install ipinfo-cli
OR to install the latest `amd64` version without automatic updates:

```bash
curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/macos.sh | sh
curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/macos.sh | sh
```

### Ubuntu PPA
Expand All @@ -43,14 +43,14 @@ sudo apt install ipinfo
for automatic updates.

```bash
curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/deb.sh | sh
curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/deb.sh | sh
```

OR

```bash
curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/ipinfo_2.8.0.deb
sudo dpkg -i ipinfo_2.8.0.deb
curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/ipinfo_2.8.1.deb
sudo dpkg -i ipinfo_2.8.1.deb
```

### FreeBSD
Expand All @@ -71,13 +71,13 @@ makepkg -si
*Note*: run powershell as administrator before executing this command.

```bash
iwr -useb https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/windows.ps1 | iex
iwr -useb https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/windows.ps1 | iex
```

### Docker

```bash
docker run ipinfo/ipinfo:2.8.0
docker run ipinfo/ipinfo:2.8.1
```

### Using `go install`
Expand Down Expand Up @@ -128,12 +128,12 @@ After choosing a platform `PLAT` from above, run:

```bash
# for Windows, use ".zip" instead of ".tar.gz"
curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/ipinfo_2.8.0_${PLAT}.tar.gz
curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/ipinfo_2.8.1_${PLAT}.tar.gz
# OR
wget https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.0/ipinfo_2.8.0_${PLAT}.tar.gz
wget https://github.com/ipinfo/cli/releases/download/ipinfo-2.8.1/ipinfo_2.8.1_${PLAT}.tar.gz

tar -xvf ipinfo_2.8.0_${PLAT}.tar.gz
mv ipinfo_2.8.0_${PLAT} /usr/local/bin/ipinfo
tar -xvf ipinfo_2.8.1_${PLAT}.tar.gz
mv ipinfo_2.8.1_${PLAT} /usr/local/bin/ipinfo
```

### Using `git`
Expand Down
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ipinfo (2.8.0) focal; urgency=medium
ipinfo (2.8.1) focal; urgency=medium

* 2.8.0 release.
* 2.8.1 release.

-- umar <[email protected]> Mon, 22 Nov 2021 12:32:18 +0500
2 changes: 1 addition & 1 deletion debian/files
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ipinfo_2.8.0_source.buildinfo utils optional
ipinfo_2.8.1_source.buildinfo utils optional
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/fatih/color v1.10.0
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1
github.com/ipinfo/go/v2 v2.6.0
github.com/ipinfo/go/v2 v2.7.0
github.com/jszwec/csvutil v1.4.0
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4
github.com/posener/script v1.1.5
Expand Down
11 changes: 7 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
github.com/ipinfo/go/v2 v2.6.0 h1:OXyubfiXI4CnXTvyUfFKYG8NoLb3cMXaM+d8mNd3sIc=
github.com/ipinfo/go/v2 v2.6.0/go.mod h1:2MrJVdUamrTc5VdC7yrbKGbsOOxMtdUpnpBJmtZgA8o=
github.com/ipinfo/go/v2 v2.7.0 h1:+1l8e4zjKOCgiZ6RNsOLbdlXJkCA+Qgc4i6W7g/S9Wg=
github.com/ipinfo/go/v2 v2.7.0/go.mod h1:tRDkYfM20b1XzNqorn1Q1O6Xtg7uzw3Wn3I2R0SyJh4=
github.com/jszwec/csvutil v1.4.0 h1:ro7gZN8PRsyNUEX8qE/eYPE5/kffEXMs+4eRcOd1oUk=
github.com/jszwec/csvutil v1.4.0/go.mod h1:Rpu7Uu9giO9subDyMCIQfHVDuLrcaC36UA4YcJjGBkg=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
Expand All @@ -21,21 +21,23 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI=
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/script v1.1.5 h1:su+9YHNlevT+Hlq2Xul5skh5kYDIBE+x4xu+5mLDT9o=
github.com/posener/script v1.1.5/go.mod h1:Rg3ijooqulo05aGLyGsHoLmIOUzHUVK19WVgrYBPU/E=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a h1:DcqTD9SDLc+1P/r1EmRBwnVsrOwW+kk2vWf9n+1sGhs=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220513210516-0976fa681c29 h1:w8s32wxx3sY+OjLlv9qltkLU5yvJzxjjgiHWLjdIcw4=
golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand All @@ -46,6 +48,7 @@ golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlp
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
Expand Down
1 change: 1 addition & 0 deletions ipinfo/cmd_bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func cmdBulk() (err error) {

data, err := ii.GetIPInfoBatch(ips, ipinfo.BatchReqOpts{
TimeoutPerBatch: 60 * 30, // 30min
ConcurrentBatchRequestsLimit: 20,
})
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions ipinfo/cmd_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func cmdDefault() (err error) {

data, err := ii.GetIPInfoBatch(ips, ipinfo.BatchReqOpts{
TimeoutPerBatch: 60 * 30, // 30min
ConcurrentBatchRequestsLimit: 20,
})
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/deb.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

VSN=2.8.0
VSN=2.8.1

curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-${VSN}/ipinfo_${VSN}.deb
sudo dpkg -i ipinfo_${VSN}.deb
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/dist/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: ipinfo
Section: utils
Version: 2.8.0
Version: 2.8.1
Priority: optional
Maintainer: IPinfo <[email protected]>
Vcs-Git: https://github.com/ipinfo/cli
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/macos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

VSN=2.8.0
VSN=2.8.1
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-${VSN}/ipinfo_${VSN}_${PLAT}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

var progBase = filepath.Base(os.Args[0])
var version = "2.8.0"
var version = "2.8.1"

// global flags.
var fHelp bool
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/windows.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$VSN = "2.8.0"
$VSN = "2.8.1"

# build the filename for the Zip archive and exe file
$FileName = "ipinfo_$($VSN)_windows_amd64"
Expand Down
20 changes: 18 additions & 2 deletions vendor/github.com/ipinfo/go/v2/ipinfo/batch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/ipinfo/go/v2/ipinfo/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 66 additions & 1 deletion vendor/golang.org/x/sync/errgroup/errgroup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ github.com/hashicorp/errwrap
# github.com/hashicorp/go-multierror v1.1.1
## explicit
github.com/hashicorp/go-multierror
# github.com/ipinfo/go/v2 v2.6.0
# github.com/ipinfo/go/v2 v2.7.0
## explicit
github.com/ipinfo/go/v2/ipinfo
github.com/ipinfo/go/v2/ipinfo/cache
Expand Down Expand Up @@ -40,7 +40,7 @@ github.com/stretchr/testify/assert
# go.etcd.io/bbolt v1.3.6
## explicit
go.etcd.io/bbolt
# golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
# golang.org/x/sync v0.0.0-20220513210516-0976fa681c29
golang.org/x/sync/errgroup
# golang.org/x/sys v0.0.0-20211004093028-2c5d950f24ef
## explicit
Expand Down

0 comments on commit c9c68ad

Please sign in to comment.