Skip to content

Commit

Permalink
kubo rename and bump cli to 0.17 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah authored Dec 19, 2022
1 parent fb89384 commit 1933364
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import qualified Fission.CLI.IPFS.Version.Types as IPFS

type GetRelease
= "ipfs"
:> "go-ipfs"
:> "kubo"
:> "releases"
:> "download"
:> Capture "version" IPFS.Version
Expand Down
6 changes: 3 additions & 3 deletions fission-cli/library/Fission/CLI/IPFS/Executable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ place' host = do
IPFS.BinPath ipfsPath <- Path.globalIPFSBin

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

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

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

configure ::
Expand Down
2 changes: 1 addition & 1 deletion fission-cli/library/Fission/CLI/IPFS/Release/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data Release = Release
instance Display Release where
display Release {..} =
mconcat
[ "go-ipfs_"
[ "kubo_"
, display version
, "_"
, osLabel
Expand Down
2 changes: 1 addition & 1 deletion fission-cli/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: fission-cli
version: "2.19.0.0"
version: "2.20.0.0"
category: CLI
author:
- Brooklyn Zelenka
Expand Down

0 comments on commit 1933364

Please sign in to comment.