Skip to content

Commit 1933364

Browse files
authored
kubo rename and bump cli to 0.17 (#633)
1 parent fb89384 commit 1933364

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: fission-cli/library/Fission/CLI/IPFS/Download/GitHub/Types.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import qualified Fission.CLI.IPFS.Version.Types as IPFS
99

1010
type GetRelease
1111
= "ipfs"
12-
:> "go-ipfs"
12+
:> "kubo"
1313
:> "releases"
1414
:> "download"
1515
:> Capture "version" IPFS.Version

Diff for: fission-cli/library/Fission/CLI/IPFS/Executable.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ place' host = do
7171
IPFS.BinPath ipfsPath <- Path.globalIPFSBin
7272

7373
-- Network
74-
ipfsBin <- ensureM . unpack =<< download (IPFS.Version 0 12 2) host
74+
ipfsBin <- ensureM . unpack =<< download (IPFS.Version 0 17 0) host
7575

7676
logDebug @Text "🚎 Moving IPFS into place..."
7777
File.lazyForceWrite ipfsPath ipfsBin
@@ -89,7 +89,7 @@ download ::
8989
-> OS.Supported
9090
-> m Lazy.ByteString
9191
download version os = do
92-
logDebug $ "⬇️ Downloading go-ipfs " <> display version <> " for " <> display os
92+
logDebug $ "⬇️ Downloading kubo " <> display version <> " for " <> display os
9393
ensureM . GitHub.sendRequest $ IPFS.getRelease IPFS.Release {..}
9494

9595
unpack :: (MonadIO m, MonadLogger m) => Lazy.ByteString -> m (Either (NotFound FilePath) Lazy.ByteString)
@@ -104,7 +104,7 @@ unpack tarGz = do
104104
getIPFS :: Tar.Entry -> Either (NotFound FilePath) Lazy.ByteString -> Either (NotFound FilePath) Lazy.ByteString
105105
getIPFS entry acc =
106106
case (Tar.entryPath entry, Tar.entryContent entry) of
107-
("go-ipfs/ipfs", Tar.NormalFile ipfsBin _) -> Right ipfsBin
107+
("kubo/ipfs", Tar.NormalFile ipfsBin _) -> Right ipfsBin
108108
_ -> acc
109109

110110
configure ::

Diff for: fission-cli/library/Fission/CLI/IPFS/Release/Types.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ data Release = Release
1717
instance Display Release where
1818
display Release {..} =
1919
mconcat
20-
[ "go-ipfs_"
20+
[ "kubo_"
2121
, display version
2222
, "_"
2323
, osLabel

Diff for: fission-cli/package.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: fission-cli
2-
version: "2.19.0.0"
2+
version: "2.20.0.0"
33
category: CLI
44
author:
55
- Brooklyn Zelenka

0 commit comments

Comments
 (0)