-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: cosmovisor in test is out dated (#1380)
new version cosmovisor support graceful shutdown Solution: - update cosmovisor - adapt the test case Update CHANGELOG.md Signed-off-by: yihuang <[email protected]>
- Loading branch information
Showing
8 changed files
with
73 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
# some basic overlays nessesary for the build | ||
final: super: { | ||
rocksdb = final.callPackage ./rocksdb.nix { }; | ||
|
||
# make-tarball don't follow symbolic links to avoid duplicate file, the bundle should have no external references. | ||
# reset the ownership and permissions to make the extract result more normal. | ||
make-tarball = final.callPackage | ||
({ buildPackages | ||
, runCommand | ||
}: drv: runCommand "tarball-${drv.name}" | ||
{ | ||
nativeBuildInputs = with buildPackages; [ gnutar gzip ]; | ||
} | ||
'' | ||
tar cfv - -C "${drv}" \ | ||
--owner=0 --group=0 --mode=u+rw,uga+r --hard-dereference . \ | ||
| gzip -9 > $out | ||
'' | ||
) | ||
{ }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ buildGoModule | ||
, fetchFromGitHub | ||
}: | ||
|
||
let | ||
version = "1.5.0"; | ||
cosmos-sdk = fetchFromGitHub { | ||
owner = "cosmos"; | ||
repo = "cosmos-sdk"; | ||
rev = "tools/cosmovisor/v${version}"; | ||
hash = "sha256-Ov8FGpDOcsqmFLT2s/ubjmTXj17sQjBWRAdxlJ6DNEY="; | ||
}; | ||
in | ||
buildGoModule rec { | ||
name = "cosmovisor"; | ||
version = "1.5.0"; | ||
src = cosmos-sdk + "/tools/cosmovisor"; | ||
subPackages = [ "./cmd/cosmovisor" ]; | ||
vendorHash = "sha256-IkPnnfkofn5w8Oa/uzGxgI1eb5RrJ9haNgj4mBXF+n8="; | ||
doCheck = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters