Skip to content

Commit 3f1b61a

Browse files
committed
fix: add /v2 module path and update imports for Go semantic import versioning
1 parent 49654a6 commit 3f1b61a

19 files changed

+55
-55
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Based on:
118118

119119
To install `ipgeolocation` using `go install`, run:
120120
```bash
121-
go install github.com/IPGeolocation/cli/cmd/ipgeolocation@latest
121+
go install github.com/IPGeolocation/cli/v2/cmd/ipgeolocation@latest
122122
```
123123

124124
Make sure `$GOBIN` or `$GOPATH/bin` is in your `PATH`, then run:
@@ -147,23 +147,23 @@ The CLI provides geolocation information, timezone, user-agent parsing, bulk IP
147147

148148
| Platform | Architecture | File Name / Downoad Link |
149149
|----------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
150-
| Linux | amd64 | [**ipgeolocation-2.0.0-linux-amd64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.0-linux-amd64.tar.gz) |
151-
| Linux | arm64 | [**ipgeolocation-2.0.0-linux-arm64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.0-linux-arm64.tar.gz) |
152-
| macOS | amd64 | [**ipgeolocation-2.0.0-darwin-amd64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.0-darwin-amd64.tar.gz) |
153-
| macOS | arm64 | [**ipgeolocation-2.0.0-darwin-arm64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.0-darwin-arm64.tar.gz) |
154-
| Windows | amd64 | [**ipgeolocation-2.0.0-windows-amd64.zip**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.0-windows-amd64.zip) |
150+
| Linux | amd64 | [**ipgeolocation-2.0.1-linux-amd64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.1-linux-amd64.tar.gz) |
151+
| Linux | arm64 | [**ipgeolocation-2.0.1-linux-arm64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.1-linux-arm64.tar.gz) |
152+
| macOS | amd64 | [**ipgeolocation-2.0.1-darwin-amd64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.1-darwin-amd64.tar.gz) |
153+
| macOS | arm64 | [**ipgeolocation-2.0.1-darwin-arm64.tar.gz**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.1-darwin-arm64.tar.gz) |
154+
| Windows | amd64 | [**ipgeolocation-2.0.1-windows-amd64.zip**](https://github.com/IPGeolocation/cli/releases/download/v2.0.0/ipgeolocation-2.0.1-windows-amd64.zip) |
155155

156156
#### Installation Instructions
157157

158158
**Linux:**
159159
1. Download the `.tar.gz` file for your architecture.
160160
2. Extract it to a folder in your PATH, e.g., `/usr/local/bin`:
161161
```bash
162-
tar -xzf ipgeolocation-2.0.0-linux-amd64.tar.gz -C /usr/local/bin
162+
tar -xzf ipgeolocation-2.0.1-linux-amd64.tar.gz -C /usr/local/bin
163163
```
164164
3. Rename the binary for simplicity:
165165
```bash
166-
mv /usr/local/bin/ipgeolocation-2.0.0-linux-amd64 /usr/local/bin/ipgeolocation
166+
mv /usr/local/bin/ipgeolocation-2.0.1-linux-amd64 /usr/local/bin/ipgeolocation
167167
```
168168
4. Make the binary executable:
169169
```bash
@@ -178,11 +178,11 @@ The CLI provides geolocation information, timezone, user-agent parsing, bulk IP
178178
1. Download the `.tar.gz` file for your architecture (amd64 or arm64).
179179
2. Extract to a folder in your PATH, e.g., `/usr/local/bin`:
180180
```bash
181-
tar -xzf ipgeolocation-2.0.0-darwin-amd64.tar.gz -C /usr/local/bin
181+
tar -xzf ipgeolocation-2.0.1-darwin-amd64.tar.gz -C /usr/local/bin
182182
```
183183
3. Rename the binary:
184184
```bash
185-
mv /usr/local/bin/ipgeolocation-2.0.0-darwin-amd64 /usr/local/bin/ipgeolocation
185+
mv /usr/local/bin/ipgeolocation-2.0.1-darwin-amd64 /usr/local/bin/ipgeolocation
186186
```
187187
4. Make executable:
188188
```bash
@@ -195,7 +195,7 @@ The CLI provides geolocation information, timezone, user-agent parsing, bulk IP
195195

196196
**Windows:**
197197
1. Download the `.zip` file.
198-
2. Extract the `ipgeolocation-2.0.0-windows-amd64.exe` to a folder included in your system `PATH`.
198+
2. Extract the `ipgeolocation-2.0.1-windows-amd64.exe` to a folder included in your system `PATH`.
199199
3. Rename the binary to `ipgeolocation.exe` for convenience.
200200
4. Open Command Prompt and verify:
201201
```cmd

build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
APP_NAME="ipgeolocation"
5-
VERSION="2.0.0" # fixed version
5+
VERSION="2.0.1" # fixed version
66

77
rm -rf dist
88
mkdir -p dist

cmd/abuse.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/asn.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/astronomy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
encoding "net/url"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/astronomyTimeseries.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
encoding "net/url"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/bulkIpSecurity.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"os"
88
"strings"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cmd
33
import (
44
"fmt"
55

6-
"github.com/IPGeolocation/cli/internal/config"
7-
"github.com/IPGeolocation/cli/internal/utils"
6+
"github.com/IPGeolocation/cli/v2/internal/config"
7+
"github.com/IPGeolocation/cli/v2/internal/utils"
88

99
"github.com/spf13/cobra"
1010
)

cmd/ipSecurity.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

cmd/ipgeo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/IPGeolocation/cli/internal/common"
11-
"github.com/IPGeolocation/cli/internal/config"
12-
"github.com/IPGeolocation/cli/internal/utils"
10+
"github.com/IPGeolocation/cli/v2/internal/common"
11+
"github.com/IPGeolocation/cli/v2/internal/config"
12+
"github.com/IPGeolocation/cli/v2/internal/utils"
1313

1414
"github.com/spf13/cobra"
1515
"gopkg.in/yaml.v3"

0 commit comments

Comments
 (0)