diff options
-rw-r--r-- | tools/build/panda-state.p6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/panda-state.p6 b/tools/build/panda-state.p6 index 96716f9..9b986d9 100644 --- a/tools/build/panda-state.p6 +++ b/tools/build/panda-state.p6 @@ -21,7 +21,7 @@ Nil; # Walk the submodules and put its project information in panda's state file. my $fh = $state-file.IO.open(:w); for '.gitmodules'.IO.lines.grep(/^\turl/).map({ /$<url>=[\S+]$/; ~$<url> }) -> $url { - my $p = $projects.first({$_.<source-url> ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); + my $p = $projects.first({defined .<source-url> && $_.<source-url> ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); $p<repo-type> = 'git'; $p<source-url> = $url; $fh.say: $p<name> ~ ' installed ' ~ to-json($p).subst(/\n+/, '', :g); |