From 3b9bbcab8fc305fe26c28c6efe1548cd7d663e28 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 26 Feb 2024 10:22:46 +0100 Subject: [PATCH 1/3] build: downgrade go to 1.19 --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- CHANGELOG.md | 14 ++++++++++---- flake.nix | 2 +- go.mod | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 786ff67..f5a9e70 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.19" check-latest: true - name: run lint run: nix develop -c make lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e102fc..e0abbbf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.19" check-latest: true cache: true cache-dependency-path: store/go.sum diff --git a/CHANGELOG.md b/CHANGELOG.md index 19ac5bd..fa75ee0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # Changelog +## [v1.0.2] - 2024-02-26 + +* Downgrade Go version in go.mod to 1.19 + +## [v1.0.1] - 2024-02-25 + ## [v1.0.0] - 2023-05-25 > Note this repository was forked from [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db). Minor modifications were made after the fork to better support the Cosmos SDK. Notably, this repo removes badger, boltdb and cleveldb. -- added bloom filter: -- Removed Badger & Boltdb -- Add `NewBatchWithSize` to `DB` interface: -- Add `NewRocksDBWithRaw` to support different rocksdb open mode (read-only, secondary-standby). +* added bloom filter: +* Removed Badger & Boltdb +* Add `NewBatchWithSize` to `DB` interface: +* Add `NewRocksDBWithRaw` to support different rocksdb open mode (read-only, secondary-standby). diff --git a/flake.nix b/flake.nix index fa708f8..033d170 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ devShells = rec { default = with pkgs; mkShell { buildInputs = [ - go_1_22 # Use Go 1.22 version + go_1_19 # Use Go 1.19 version rocksdb ]; }; diff --git a/go.mod b/go.mod index 14216f8..75592a5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cosmos/cosmos-db -go 1.22 +go 1.19 require ( github.com/cockroachdb/pebble v1.1.0 From 8e370bad6db68e6aec596d94114d534ce8cadedc Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 26 Feb 2024 09:28:25 +0000 Subject: [PATCH 2/3] updates --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index e9e1242..39a8021 100644 --- a/flake.lock +++ b/flake.lock @@ -59,11 +59,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1708717151, - "narHash": "sha256-RNzshSpRlJd7Ibe+GZHeu464TMK0m6oWxJQe65DPA8s=", + "lastModified": 1708938765, + "narHash": "sha256-TQ2wSxlP/DHNmFOoXdNK8LE3NwKdPKolQuTOb6ZWSDA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "535e77d73023b4fe1c492559d62e3e0d06365850", + "rev": "43a361cf1673404de34a9d60352e07bf9b66e6ef", "type": "github" }, "original": { From bf91bd416db08d5e7dd5a47325819c7a5ffef14b Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 26 Feb 2024 09:33:59 +0000 Subject: [PATCH 3/3] updates --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- flake.lock | 6 +++--- flake.nix | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f5a9e70..e69c4b8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.19" + go-version: "1.20" check-latest: true - name: run lint run: nix develop -c make lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0abbbf..4af9022 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - uses: actions/setup-go@v5 with: - go-version: "1.19" + go-version: "1.20" check-latest: true cache: true cache-dependency-path: store/go.sum diff --git a/flake.lock b/flake.lock index 39a8021..b9479b6 100644 --- a/flake.lock +++ b/flake.lock @@ -59,11 +59,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1708938765, - "narHash": "sha256-TQ2wSxlP/DHNmFOoXdNK8LE3NwKdPKolQuTOb6ZWSDA=", + "lastModified": 1708939921, + "narHash": "sha256-lUPEqED/qB7Z7QiX542055zH17e3tzt+1+UsvPCAhoY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "43a361cf1673404de34a9d60352e07bf9b66e6ef", + "rev": "bfa86752190cd87271f76daffb8c7e031f0d1423", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 033d170..abae8ef 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ devShells = rec { default = with pkgs; mkShell { buildInputs = [ - go_1_19 # Use Go 1.19 version + go_1_20 # Use Go 1.20 version rocksdb ]; };