holochain / holonix

Holochain app development environment based on Nix.
4 stars 1 forks source link

Add `hn-introspect` command #26

Closed ThetaSinner closed 2 months ago

ThetaSinner commented 2 months ago

Closes #25

jost-s commented 2 months ago

Wasn't there something with HDK and HDI versions?

ThetaSinner commented 2 months ago

Haha! It did do one thing I'd missed, which is to include Git revisions.

Old hn-introspect output:

holochain (holochain 0.4.0-dev.13): d7ef2a0947908ba1f859a535ef9ea31f89c2d355
lair-keystore (lair_keystore 0.4.5): 6a84ed490fc7074d107e38bbb4a8d707e9b8e066
hc-scaffold (holochain_scaffolding_cli 0.4000.0-dev.11): 6cb5a8d59d0eb844c4c727736a16d2f0c72caf0b
hc-launch (holochain_cli_launch 0.400.0-dev.0 (holochain 0.4.0-dev.12)): b788d346491f4749949ae1710d51508920b6ea07

New output:

hc-scaffold   : holochain_scaffolding_cli 0.4000.0-dev.10 (3241aaa)
hc-launch     : holochain_cli_launch 0.400.0-dev.0 (holochain 0.4.0-dev.12) (b788d34)
Lair keystore : lair_keystore 0.4.5 (6a84ed4)
Holochain     : holochain 0.4.0-dev.13 (d7ef2a0)

Holochain build info: {
  "git_info": null,
  "cargo_pkg_version": "0.4.0-dev.13",
  "hdk_version_req": "0.4.0-dev.11",
  "hdi_version_req": "0.5.0-dev.10",
  "lair_keystore_version_req": "0.4.5",
  "timestamp": "2024-07-19T16:11:55.211733946Z",
  "hostname": "localhost",
  "host": "x86_64-unknown-linux-gnu",
  "target": "x86_64-unknown-linux-gnu",
  "rustc_version": "rustc 1.78.0 (9b00956e5 2024-04-29)",
  "rustflags": "",
  "profile": "release"
}

So the HDK and HDI versions are included in the --build-info for Holochain. Which is great if you knew to run that, but I think it's better to just run it with the introspect. It's not trivially to parse anyway, so why not add a bit more information by default.