Skip to content

Commit

Permalink
Merge pull request #84 from maxmind/greg/fix-versioning
Browse files Browse the repository at this point in the history
Fix module import path
  • Loading branch information
horgh authored Feb 20, 2020
2 parents df0a324 + 9a252ed commit 7f60ecf
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 31 deletions.
44 changes: 22 additions & 22 deletions .goreleaser-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ builds:
- '-s -w -X main.version={{.Version}} -X main.defaultConfigFile=/etc/GeoIP.conf -X main.defaultDatabaseDirectory=/usr/share/GeoIP'
checksum:
name_template: 'checksums-dpkg-rpm.txt'
nfpm:
vendor: 'MaxMind, Inc.'
homepage: https://www.maxmind.com/
maintainer: 'MaxMind, Inc. <[email protected]>'
description: Program to perform automatic updates of GeoIP2 and GeoIP Legacy binary databases.
license: Apache 2.0 or MIT
formats:
- deb
- rpm
bindir: /usr/bin
empty_folders:
- /usr/share/GeoIP
files:
'CHANGELOG.md': '/usr/share/doc/geoipupdate/CHANGELOG.md'
'LICENSE-APACHE': '/usr/share/doc/geoipupdate/LICENSE-APACHE'
'LICENSE-MIT': '/usr/share/doc/geoipupdate/LICENSE-MIT'
'README.md': '/usr/share/doc/geoipupdate/README.md'
'GeoIP.conf': '/usr/share/doc/geoipupdate/GeoIP.conf'
'GeoIP.conf.md': '/usr/share/doc/geoipupdate/GeoIP.conf.md'
'geoipupdate.md': '/usr/share/doc/geoipupdate/geoipupdate.md'
config_files:
'GeoIP.conf': '/etc/GeoIP.conf'
nfpms:
- vendor: 'MaxMind, Inc.'
homepage: https://www.maxmind.com/
maintainer: 'MaxMind, Inc. <[email protected]>'
description: Program to perform automatic updates of GeoIP2 and GeoIP Legacy binary databases.
license: Apache 2.0 or MIT
formats:
- deb
- rpm
bindir: /usr/bin
empty_folders:
- /usr/share/GeoIP
files:
'CHANGELOG.md': '/usr/share/doc/geoipupdate/CHANGELOG.md'
'LICENSE-APACHE': '/usr/share/doc/geoipupdate/LICENSE-APACHE'
'LICENSE-MIT': '/usr/share/doc/geoipupdate/LICENSE-MIT'
'README.md': '/usr/share/doc/geoipupdate/README.md'
'GeoIP.conf': '/usr/share/doc/geoipupdate/GeoIP.conf'
'GeoIP.conf.md': '/usr/share/doc/geoipupdate/GeoIP.conf.md'
'geoipupdate.md': '/usr/share/doc/geoipupdate/geoipupdate.md'
config_files:
'GeoIP.conf': '/etc/GeoIP.conf'
release:
# We disable the release as there is no way to disable the creation of
# the archive version and we don't want to upload those. We also can
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# CHANGELOG

## 4.2.0 (2020-02-20)

* The major version of the module is now included at the end of the module
path. Previously, it was not possible to import the module in projects that
were using Go modules. Reported by Roman Glushko. GitHub #81.
* The minimum Go version is now 1.13.
* A valid account ID and license key combination is now required for database
downloads, so those configuration options are now required.
* The error handling when closing a local database file would previously
ignore errors and, upon upgrading to `github.com/pkg/errors` 0.9.0,
would fail to ignore expected errors. Reported by Ilya Skrypitsa and
pgnd. GitHub #69 and #70.
* The RPM release was previously lacking the correct owner and group on files
and directories. Among other things, this caused the package to conflict with
the `GeoIP` package in CentOS 7 and `GeoIP-GeoLite-data` in CentOS 8. The
files are now owned by `root`. Reported by neonknight. GitHub #76.

## 4.1.5 (2019-11-08)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ website](https://golang.org).

The easiest way is via `go get`:

$ go get -u github.com/maxmind/geoipupdate/cmd/geoipupdate
$ go get -u github.com/maxmind/geoipupdate/v4/cmd/geoipupdate

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

Expand Down Expand Up @@ -139,7 +139,7 @@ https://github.com/maxmind/geoipupdate/issues

# Copyright and License

This software is Copyright (c) 2018 - 2019 by MaxMind, Inc.
This software is Copyright (c) 2018 - 2020 by MaxMind, Inc.

This is free software, licensed under the [Apache License, Version
2.0](LICENSE-APACHE) or the [MIT License](LICENSE-MIT), at your option.
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 @@ -16,7 +16,7 @@ import (
"testing"
"time"

"github.com/maxmind/geoipupdate/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"path/filepath"

"github.com/maxmind/geoipupdate/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/pkg/geoipupdate/database"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/database"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion doc/geoipupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Report bugs to [[email protected]](mailto:[email protected]).

Written by William Storey.

This software is Copyright (c) 2018-2019 by MaxMind, Inc.
This software is Copyright (c) 2018-2020 by MaxMind, Inc.

This is free software, licensed under the Apache License, Version 2.0 or
the MIT License, at your option.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/maxmind/geoipupdate
module github.com/maxmind/geoipupdate/v4

go 1.13

Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/maxmind/geoipupdate v4.0.2+incompatible h1:G1tXaGXl3kfFUYE9/pyico4J6OKWFL79i0XVUdbMebk=
github.com/pkg/errors v0.9.0 h1:J8lpUdobwIeCI7OiSxHqEwJUKvJwicL5+3v1oe2Yb4k=
github.com/pkg/errors v0.9.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand Down
2 changes: 1 addition & 1 deletion pkg/geoipupdate/database/http_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"time"

"github.com/maxmind/geoipupdate/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/geoipupdate/database/http_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"time"

"github.com/maxmind/geoipupdate/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 7f60ecf

Please sign in to comment.