-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
R4R: enrich version command's output #3343
R4R: enrich version command's output #3343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick early review; needs PENDING.md
too.
Codecov Report
@@ Coverage Diff @@
## develop #3343 +/- ##
=======================================
Coverage 54.9% 54.9%
=======================================
Files 132 132
Lines 9680 9680
=======================================
Hits 5315 5315
Misses 4028 4028
Partials 337 337 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running this for the first time for me yields:
cat: vendor-deps: No such file or directory
cat: vendor-deps: No such file or directory
cat: vendor-deps: No such file or directory
cat: vendor-deps: No such file or directory
cat: vendor-deps: No such file or directory
go install -tags "netgo ledger" -ldflags "-X github.com/cosmos/cosmos-sdk/version.Version=0.29.1-98-gf4c84046 -X github.com/cosmos/cosmos-sdk/version.Commit=f4c8404607c94eb0feb6e182bce31b54f827d241 -X github.com/cosmos/cosmos-sdk/version.VendorDirHash=" ./cmd/gaia/cmd/gaiad
...
Then, gaiad version
yields:
cosmos-sdk 0.29.1-98-gf4c84046
latest commit: f4c8404607c94eb0feb6e182bce31b54f827d241
vendor/ directory's hash:
go version go1.11 darwin/amd64
|
||
* Gaia | ||
* https://github.com/cosmos/cosmos-sdk/issues/2838 - Move store keys to constants | ||
* [\#3162](https://github.com/cosmos/cosmos-sdk/issues/3162) The `--gas` flag now takes `auto` instead of `simulate` | ||
in order to trigger a simulation of the tx before the actual execution. | ||
* [\#3285](https://github.com/cosmos/cosmos-sdk/pull/3285) New `gaiad tendermint version` to print libs versions | ||
* [\#1894](https://github.com/cosmos/cosmos-sdk/pull/1894) `version` command now shows latest commit, vendor dir hash, and build machine info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this duplicate entry? I think the CLI will suffice.
fmt.Println("cosmos-sdk", GetVersion()) | ||
fmt.Println("latest commit:", Commit) | ||
fmt.Println("vendor/ directory's hash:", VendorDirHash) | ||
fmt.Printf("go version %s %s/%s\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Printf("go version %s %s/%s\n", | |
fmt.Printf("go version: %s %s/%s\n", |
Maybe we also make the option to output this as JSON? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming is fine with caveats, the reading of file content need to be changed.
As $(file <) requires Make >= 4.2
Co-Authored-By: alessio <[email protected]>
Co-Authored-By: alessio <[email protected]>
$(file <) requires Make 4.2. I think I found a portable way of achieving
the same result
…On Tue, Jan 22, 2019 at 5:14 PM Greg Szabo ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Renaming is fine with caveats, the reading of file content need to be
changed.
------------------------------
In Makefile
<#3343 (comment)>:
> @@ -131,10 +131,11 @@ devtools-stamp: tools
go get github.com/tendermint/lint/golint
touch $@
-get_vendor_deps: tools
+vendor-deps: tools
What Mircea and Jack said. Not crazy about current naming conventions but
they seeped into everything. (Just look at some of the faucet code or the
telegram bot.) I don't mind accepting this new naming as long as CircleCI
is also updated *and* if we (eventually) come up with how this should
look like so it's not nilly-willy. :)
The cat vendor-deps part however won't work on Windows. Please use $(file
< vendor-deps) instead. (And test it, this is off the top of my head.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3343 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAN_7NvPx4E3l6ntalUTjKwUGExz4fbUks5vF0b4gaJpZM4aL7P0>
.
--
Alessio Treglia | [email protected]
0416 0004 A827 6E40 BB98 90FB E8A4 8AE5 311D 765A
|
Co-Authored-By: alessio <[email protected]>
PENDING.md
Outdated
|
||
* SDK | ||
* [staking] \#2513 Validator power type from Dec -> Int | ||
* [staking] \#3233 key and value now contain duplicate fields to simplify code | ||
* [\#3064](https://github.com/cosmos/cosmos-sdk/issues/3064) Sanitize `sdk.Coin` denom. Coins denoms are now case insensitive, i.e. 100fooToken equals to 100FOOTOKEN. | ||
* [\#3195](https://github.com/cosmos/cosmos-sdk/issues/3195) Allows custom configuration for syncable strategy | ||
* [\#3242](https://github.com/cosmos/cosmos-sdk/issues/3242) Fix infinite gas | ||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflict relics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the cruft leftover. This should not affect the merge.
Closes: #1894
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: