## Issue Addressed Resolves #3102 ## Proposed Changes - https://github.com/sigp/lighthouse/issues/3102#issuecomment-1114835063 - This is not an ideal solution, since the commit hash is missing from version number, but I think it is sufficient. ## Additional Info I've tested ... : - `fallback` is updated via `change_version.sh`. ```shell $ cd scripts/ $ ./change_version.sh 2.2.1 2.2.2 $ git diff ../common/lighthouse_version/src/lib.rs ``` ```diff @ common/lighthouse_version/src/lib.rs:20 @ pub const VERSION: &str = git_version!( // NOTE: using --match instead of --exclude for compatibility with old Git "--match=thiswillnevermatchlol" ], - prefix = "Lighthouse/v2.2.1-", - fallback = "Lighthouse/v2.2.1" + prefix = "Lighthouse/v2.2.2-", + fallback = "Lighthouse/v2.2.2" ); ``` - a package built without git info prints expected version number (v2.2.1). ```shell $ git archive HEAD --output=/tmp/lighthouse.zip $ cd /tmp $ unzip lighthouse.zip $ cd lighthouse $ cargo build --release $ target/release/lighthouse --version Lighthouse v2.2.1 BLS library: blst SHA256 hardware acceleration: false Specs: mainnet (true), minimal (false), gnosis (false) ``` |
||
|---|---|---|
| .. | ||
| account_utils | ||
| clap_utils | ||
| compare_fields | ||
| compare_fields_derive | ||
| deposit_contract | ||
| directory | ||
| eth2 | ||
| eth2_config | ||
| eth2_interop_keypairs | ||
| eth2_network_config | ||
| eth2_wallet_manager | ||
| fallback | ||
| filesystem | ||
| hashset_delay | ||
| lighthouse_metrics | ||
| lighthouse_version | ||
| lockfile | ||
| logging | ||
| lru_cache | ||
| malloc_utils | ||
| monitoring_api | ||
| sensitive_url | ||
| slot_clock | ||
| target_check | ||
| task_executor | ||
| test_random_derive | ||
| unused_port | ||
| validator_dir | ||
| warp_utils | ||
| README.md | ||
eth2
Common crates containing eth2-specific logic.