on master help sign in
Fix another show URL error
commit9d928afa45090b859a05154bbc08b5edac4acb12 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 17 Oct 2018, 16:20 (8 years ago) parent5bbb6e5
1 file changed+1−2
lib/command/src/Obelisk/Command/Thunk.hs+1−2
lib/command/src/Obelisk/Command/Thunk.hs+1−2
@@ -329,8 +329,7 @@ encodeThunkPtrData (ThunkPtr rev src) = case src of
329329 , Just $ "sha256" .= _thunkRev_nixSha256 rev
330330 ]
331331 ThunkSource_Git s -> encodePretty' plainGitCfg $ Aeson.object $ catMaybes
332− --TODO: Is this safe? read/show is jank for `URI`
333− [ Just $ "url" .= show (_gitSource_url s)
332+ [ Just $ "url" .= render (_gitSource_url s)
334333 , Just $ "rev" .= Ref.toHexString (_thunkRev_commit rev)
335334 , ("branch" .=) <$> _gitSource_branch s
336335 , Just $ "sha256" .= _thunkRev_nixSha256 rev