From fab0ae047fcf9a7529715f17d400fa3268a370e3 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 26 Feb 2024 10:56:18 +0100 Subject: [PATCH] build: downgrade go to 1.19 (#102) * build: downgrade go to 1.19 * updates * updates --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- CHANGELOG.md | 14 ++++++++++---- flake.lock | 6 +++--- flake.nix | 2 +- go.mod | 2 +- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 786ff67..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.22" + 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 4e102fc..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.22" + go-version: "1.20" 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.lock b/flake.lock index e9e1242..b9479b6 100644 --- a/flake.lock +++ b/flake.lock @@ -59,11 +59,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1708717151, - "narHash": "sha256-RNzshSpRlJd7Ibe+GZHeu464TMK0m6oWxJQe65DPA8s=", + "lastModified": 1708939921, + "narHash": "sha256-lUPEqED/qB7Z7QiX542055zH17e3tzt+1+UsvPCAhoY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "535e77d73023b4fe1c492559d62e3e0d06365850", + "rev": "bfa86752190cd87271f76daffb8c7e031f0d1423", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index fa708f8..abae8ef 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_20 # Use Go 1.20 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