Skip to content

Commit bbdd2a0

Browse files
committed
Address comments
1 parent f556b12 commit bbdd2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ let
228228
then throw "${inputMap.${repoData.url}.rev} may not match ${repoData.ref} for ${repoData.url} use \"${repoData.url}/${repoData.ref}\" as the inputMap key if ${repoData.ref} is a branch or tag that points to ${inputMap.${repoData.url}.rev}."
229229
else inputMap.${repoData.url})
230230
else if repoData.sha256 != null
231-
then fetchgit { inherit (repoData) url sha256 rev; }
231+
then fetchgit { inherit (repoData) url sha256; rev = repoData.rev or repoData.ref; }
232232
else
233233
let drv = builtins.fetchGit { inherit (repoData) url ; rev = repoData.rev or repoData.ref; ref = repoData.ref or null; };
234-
in __trace "WARNING: No sha256 found for source-repository-package ${repoData.url} ${repoData.ref} download may fail in restricted mode (hydra)"
234+
in __trace "WARNING: No sha256 found for source-repository-package ${repoData.url} ref=${repoData.ref or ""} rev=${repoData.rev or ""} download may fail in restricted mode (hydra)"
235235
(__trace "Consider adding `--sha256: ${hashPath drv}` to the ${cabalProjectFileName} file or passing in a sha256map argument"
236236
drv);
237237
in {

0 commit comments

Comments
 (0)