Skip to content

Commit

Permalink
Update to Go v1.21 (#98)
Browse files Browse the repository at this point in the history
* Update to Go v1.21

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add changelog entry

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix changelog entry formatting

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Update README with minimum Go version, and fix dependency reference

Signed-off-by: Thane Thomson <connect@thanethomson.com>

---------

Signed-off-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
thanethomson committed Dec 1, 2023
1 parent dd1efcd commit debd991
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/go-version/98-bump-go-v1.21.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Bump minimum Go version to v1.21
([\#98](https://github.com/cometbft/cometbft-db/pull/98))
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ recommend depending on this library for new projects.

### Minimum Go Version

Go 1.20+
Go 1.21+

## Supported Database Backends

Expand Down Expand Up @@ -46,11 +46,11 @@ Go 1.20+
which have good performance for read-heavy workloads and range scans. Supports
serializable ACID transactions.

- **[RocksDB](https://github.com/tecbot/gorocksdb) [experimental]:** A [Go
wrapper](https://github.com/tecbot/gorocksdb) around
- **[RocksDB](https://github.com/linxGnu/grocksdb) [experimental]:** A [Go
wrapper](https://github.com/linxGnu/grocksdb) around
[RocksDB](https://rocksdb.org). Similarly to LevelDB (above) it uses LSM-trees
for on-disk storage, but is optimized for fast storage media such as SSDs and
memory. Supports atomic transactions, but not full ACID transactions.
memory. Supports atomic transactions, but not full ACID transactions.

- **[BadgerDB](https://github.com/dgraph-io/badger) [experimental]:** A
key-value database written as a pure-Go alternative to e.g. LevelDB and
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cometbft/cometbft-db

go 1.20
go 1.21

require (
github.com/dgraph-io/badger/v2 v2.2007.4
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
Expand Down
2 changes: 1 addition & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# updates here, merge the changes here first and let the image get updated (or
# push a new version manually) before PRs that depend on them.

FROM golang:1.20 AS build
FROM golang:1.21 AS build

ENV LD_LIBRARY_PATH=/usr/local/lib

Expand Down

0 comments on commit debd991

Please sign in to comment.