on master help sign in
Dedup more
commit4cd218ba63e5f82d5af664cb2484def58e99645f authorJohn Ericson <git@JohnEricson.me> dateSun 14 Oct 2018, 19:08 (8 years ago) parent6e13574
1 file changed+1−7
lib/command/src/Obelisk/Command/Thunk.hs+1−7
lib/command/src/Obelisk/Command/Thunk.hs+1−7
@@ -172,13 +172,7 @@ getLatestRev = \case
172172 commitInfo : _ <- return $ toList commitInfos
173173 let commit = commitSha commitInfo
174174 putLog Debug $ "Latest commit is " <> untagName commit
175− Right archiveUri <- liftIO $ executeRequestMaybe auth $ archiveForR (_gitHubSource_owner s) (_gitHubSource_repo s) ArchiveFormatTarball $ Just $ untagName commit
176− nixSha256 <- getNixSha256ForUriUnpacked archiveUri
177− putLog Debug $ "Nix sha256 is " <> nixSha256
178− return $ ThunkRev
179− { _thunkRev_commit = commitNameToRef commit
180− , _thunkRev_nixSha256 = nixSha256
181− }
175+ githubThunkPtr s $ untagName commit
182176 ThunkSource_Git s -> do
183177 (_, commit) <- gitGetCommitBranch (_gitSource_url s) (untagName <$> _gitSource_branch s)
184178 gitThunkPtr s commit