Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release script when a crate is not yet published at all on crates.io #1316

Merged
merged 2 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions light-client-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[![Crate][crate-image]][crate-link]
[![Docs][docs-image]][docs-link]

See the [repo root] for build status, license, Rust version, etc.

# Light Client CLI

CLI for the Tendermint [Light Client][light-client].

## Usage

```
Usage: tendermint-light-client-cli [OPTIONS] --chain-id <CHAIN_ID> --primary <PRIMARY> --witnesses <WITNESSES> --trusted-height <TRUSTED_HEIGHT> --trusted-hash <TRUSTED_HASH>

Options:
--chain-id <CHAIN_ID>
Identifier of the chain
--primary <PRIMARY>
Primary RPC address
--witnesses <WITNESSES>
Comma-separated list of witnesses RPC addresses
--trusted-height <TRUSTED_HEIGHT>
Height of trusted header
--trusted-hash <TRUSTED_HASH>
Hash of trusted header
--height <HEIGHT>
Height of the header to verify
--trust-threshold <TRUST_THRESHOLD>
Trust threshold [default: 2/3]
--trusting-period <TRUSTING_PERIOD>
Trusting period, in seconds (default: two weeks) [default: 1209600]
--max-clock-drift <MAX_CLOCK_DRIFT>
Maximum clock drift, in seconds [default: 5]
--max-block-lag <MAX_BLOCK_LAG>
Maximum block lag, in seconds [default: 5]
-v, --verbose...
Increase verbosity, can be repeated up to 2 times
-h, --help
Print help
-V, --version
Print version
```


[//]: # (badges)

[crate-image]: https://img.shields.io/crates/v/tendermint-light-client-cli.svg
[crate-link]: https://crates.io/crates/tendermint-light-client-cli
[docs-image]: https://docs.rs/tendermint-light-client-cli/badge.svg
[docs-link]: https://docs.rs/tendermint-light-client-cli/

[//]: # (general links)

[repo root]: https://github.com/informalsystems/tendermint-rs
[light-client]: https://github.com/informalsystems/tendermint-rs/tree/main/light-client
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ get_local_version() {
}

check_version_online() {
curl -s "https://crates.io/api/v1/crates/${1}" | jq -r '.versions[]|select(.num == "'"${2}"'").updated_at'
curl -s "https://crates.io/api/v1/crates/${1}" | jq -r 'try .versions[]|select(.num == "'"${2}"'").updated_at'
}

publish() {
Expand Down