@cryptotaxi247 / kubo / commits / 7ea568786

fix: kubo in daemon and cli stdout

(cherry picked from commit d30e71fa5aee113bb78d4cdbf146bc5ac3398558)

Marcin Rataj committed Jul 8, 2022 at 14:42 UTC 7ea568786057c7326c8cd082b6c93a0f96d8aa6a
3 files changed +3 -3
cmd/ipfs/daemon.go
+1 -1
@@ -923,7 +923,7 @@ func printVersion() {
923 if version.CurrentCommit != "" {
924 v += "-" + version.CurrentCommit
925 }
926 - fmt.Printf("go-ipfs version: %s\n", v)
926 + fmt.Printf("Kubo version: %s\n", v)
927 fmt.Printf("Repo version: %d\n", fsrepo.RepoVersion)
928 fmt.Printf("System version: %s\n", runtime.GOARCH+"/"+runtime.GOOS)
929 fmt.Printf("Golang version: %s\n", runtime.Version())
core/commands/version.go
+1 -1
@@ -46,7 +46,7 @@ var VersionCmd = &cmds.Command{
46 if version.Commit != "" {
47 ver += "-" + version.Commit
48 }
49 - out := fmt.Sprintf("go-ipfs version: %s\n"+
49 + out := fmt.Sprintf("Kubo version: %s\n"+
50 "Repo version: %s\nSystem version: %s\nGolang version: %s\n",
51 ver, version.Repo, version.System, version.Golang)
52 fmt.Fprint(w, out)
test/sharness/t0010-basic-commands.sh
+1 -1
@@ -35,7 +35,7 @@ test_expect_success "ipfs versions matches ipfs --version" '
35
36 test_expect_success "ipfs version --all has all required fields" '
37 ipfs version --all > version_all.txt &&
38 - grep "go-ipfs version" version_all.txt &&
38 + grep "Kubo version" version_all.txt &&
39 grep "Repo version" version_all.txt &&
40 grep "System version" version_all.txt &&
41 grep "Golang version" version_all.txt