Skip to content

Commit

Permalink
Fix Reportable and Nativecallable
Browse files Browse the repository at this point in the history
It's a PATH issue. The code was very fragile and should be a little
bit better now.
  • Loading branch information
AlexDaniel committed Aug 21, 2019
1 parent f564a7f commit 51c0e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbin/Nativecallable.p6
Expand Up @@ -13,7 +13,7 @@ method help($msg) {

sub run-gptrixie($header-file) {
my %ENV = %*ENV.clone;
%ENV<PATH> = join :, /home/bisectable/.rakudobrew/bin, %ENV<PATH>; # TODO
%ENV<PATH> = join :, $*EXECUTABLE.parent, %ENV<PATH>;
my %output = get-output :%ENV, gptrixie, '--silent', --all, --castxml=c99, $header-file;
if %output<output>.lines > 20 {
return but FileStore(%(GPTrixiefied.pm6 => "#Generated by App::GPTrixie\n" ~ %output<output>))
Expand Down
2 changes: 1 addition & 1 deletion xbin/Reportable.p6
Expand Up @@ -110,7 +110,7 @@ sub snapshot($msg?) {
.reply: OK! Working on it. This will take forever, so don't hold your breath. with $msg;

my $env = %*ENV.clone;
$env<PATH> = /home/bisectable/.rakudobrew/bin/ ~ : ~ $env<PATH>; # TODO any better solution?
$env<PATH> = join :, $*EXECUTABLE.parent, %ENV<PATH>;
mkdir $temp-folder/GH;
run :$env, maintenance/pull-gh, $temp-folder/GH; # TODO authenticate on github to get rid of unlikely rate limiting
mkdir $temp-folder/RT;
Expand Down

0 comments on commit 51c0e06

Please sign in to comment.