Skip to content

Commit

Permalink
Update module path version
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Apr 8, 2024
1 parent b647899 commit 3009b91
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 7.0.1 (2024-04-08)

* The 7.0.0 release was broken and has been retracted. This release updates the
module path to match tagged version. Reported by Adam Weinberger. GitHub #306.

## 7.0.0 (2024-04-08)

* BREAKING CHANGE: Improvements to the HTTP download API.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ website](https://golang.org).

The easiest way is via `go install`:

$ go install github.com/maxmind/geoipupdate/v6/cmd/geoipupdate@latest
$ go install github.com/maxmind/geoipupdate/v7/cmd/geoipupdate@latest

This installs `geoipupdate` to `$GOPATH/bin/geoipupdate`.

Expand Down
4 changes: 2 additions & 2 deletions client/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"
"time"

"github.com/maxmind/geoipupdate/v6/internal"
"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

// DownloadResponse describes the result of a Download call.
Expand Down
4 changes: 2 additions & 2 deletions client/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/url"
"strconv"

"github.com/maxmind/geoipupdate/v6/internal"
"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

const metadataEndpoint = "%s/geoip/updates/metadata?"
Expand Down
2 changes: 1 addition & 1 deletion cmd/geoipupdate/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

flag "github.com/spf13/pflag"

"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

// Args are command line arguments.
Expand Down
2 changes: 1 addition & 1 deletion cmd/geoipupdate/end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/maxmind/geoipupdate/v6/internal/geoipupdate"
"github.com/maxmind/geoipupdate/v7/internal/geoipupdate"
)

func TestUpdater(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"log"

"github.com/maxmind/geoipupdate/v6/internal/geoipupdate"
"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal/geoipupdate"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

const unknownVersion = "unknown"
Expand Down
2 changes: 1 addition & 1 deletion cmd/geoipupdate/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"runtime/debug"

"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

func init() {
Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/maxmind/geoipupdate/v6
module github.com/maxmind/geoipupdate/v7

go 1.20

Expand All @@ -21,3 +21,6 @@ require (
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

// The module version (v6) did not match the tag version in this release.
retract v7.0.0
2 changes: 1 addition & 1 deletion internal/geoipupdate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

// Config is a parsed configuration file.
Expand Down
2 changes: 1 addition & 1 deletion internal/geoipupdate/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/maxmind/geoipupdate/v6/internal/vars"
"github.com/maxmind/geoipupdate/v7/internal/vars"
)

func TestNewConfig(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/geoipupdate/geoip_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (

"github.com/cenkalti/backoff/v4"

"github.com/maxmind/geoipupdate/v6/client"
"github.com/maxmind/geoipupdate/v6/internal"
"github.com/maxmind/geoipupdate/v6/internal/geoipupdate/database"
"github.com/maxmind/geoipupdate/v7/client"
"github.com/maxmind/geoipupdate/v7/internal"
"github.com/maxmind/geoipupdate/v7/internal/geoipupdate/database"
)

type updateClient interface {
Expand Down
6 changes: 3 additions & 3 deletions internal/geoipupdate/geoip_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/net/http2"

"github.com/maxmind/geoipupdate/v6/client"
"github.com/maxmind/geoipupdate/v6/internal"
"github.com/maxmind/geoipupdate/v6/internal/geoipupdate/database"
"github.com/maxmind/geoipupdate/v7/client"
"github.com/maxmind/geoipupdate/v7/internal"
"github.com/maxmind/geoipupdate/v7/internal/geoipupdate/database"
)

// TestUpdaterOutput makes sure that the Updater outputs the result of its
Expand Down

0 comments on commit 3009b91

Please sign in to comment.