Skip to content

Commit 84d7017

Browse files
committed
chore: rename go-ipfs -> kubo
1 parent 52788ea commit 84d7017

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

lib/install.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ func (i *Install) downloadNewBinary(ctx context.Context) error {
243243
return err
244244
}
245245

246-
// TODO: switch to "kubo" distname after 1+ year since rename in 2022 ;-)
247-
distname := "go-ipfs"
246+
distname := "kubo"
248247
stump.Log("fetching %s version %s", distname, i.targetVers)
249248

250249
i.tmpBinPath, err = migrations.FetchBinary(ctx, i.fetcher, distname, i.targetVers, "ipfs", out)

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var cmdVersions = &cli.Command{
9191
ArgsUsage: " ",
9292
Action: func(c *cli.Context) error {
9393
fetcher := createFetcher(c)
94-
vs, err := migrations.DistVersions(c.Context, fetcher, "go-ipfs", true)
94+
vs, err := migrations.DistVersions(c.Context, fetcher, "kubo", true)
9595
if err != nil {
9696
stump.Fatal("failed to query versions:", err)
9797
}
@@ -142,7 +142,7 @@ var cmdInstall = &cli.Command{
142142

143143
if vers == "latest" || vers == "beta" {
144144
stable := vers == "latest"
145-
latest, err := migrations.LatestDistVersion(c.Context, fetcher, "go-ipfs", stable)
145+
latest, err := migrations.LatestDistVersion(c.Context, fetcher, "kubo", stable)
146146
if err != nil {
147147
stump.Fatal("error resolving %q: %s", vers, err)
148148
}
@@ -262,7 +262,7 @@ var cmdFetch = &cli.Command{
262262
stump.VLog("looking up 'latest'")
263263
stable = true
264264
}
265-
latest, err := migrations.LatestDistVersion(c.Context, fetcher, "go-ipfs", stable)
265+
latest, err := migrations.LatestDistVersion(c.Context, fetcher, "kubo", stable)
266266
if err != nil {
267267
stump.Fatal("error querying %q version: %s", vers, err)
268268
}
@@ -278,9 +278,9 @@ var cmdFetch = &cli.Command{
278278
output = migrations.ExeName("ipfs-" + vers)
279279
}
280280

281-
stump.Log("fetching go-ipfs version", vers)
281+
stump.Log("fetching kubo version", vers)
282282

283-
_, err = migrations.FetchBinary(c.Context, fetcher, "go-ipfs", vers, "ipfs", output)
283+
_, err = migrations.FetchBinary(c.Context, fetcher, "kubo", vers, "ipfs", output)
284284
if err != nil {
285285
stump.Fatal("failed to fetch binary:", err)
286286
}

sharness/lib/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test_install_version() {
6363
'
6464

6565
test_expect_success "'ipfs-update install' output looks good" '
66-
grep "fetching go-ipfs version $VERSION" actual &&
66+
grep "fetching kubo version $VERSION" actual &&
6767
grep "Installation complete." actual ||
6868
test_fsh cat actual
6969
'

sharness/t0030-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test_expect_success "'ipfs-update install' works" '
1616
'
1717

1818
test_expect_success "'ipfs-update install' output looks good" '
19-
grep "fetching go-ipfs version v0.3.9" actual
19+
grep "fetching kubo version v0.3.9" actual
2020
'
2121

2222
test_expect_success "'ipfs-update version' works" '
@@ -44,7 +44,7 @@ test_expect_success "'ipfs-update install' works when downgrading with flag" '
4444
'
4545

4646
test_expect_success "'ipfs-update install' output looks good" '
47-
grep "fetching go-ipfs version v0.3.8" actual
47+
grep "fetching kubo version v0.3.8" actual
4848
'
4949

5050
test_expect_success "'ipfs-update version' works" '

0 commit comments

Comments
 (0)