just icon indicating copy to clipboard operation
just copied to clipboard

Lune script stopped working

Open Dialga opened this issue 2 months ago • 1 comments

In the recent update 1.43 on arch linux, my lune script stopped working.

$ just lune
[ERROR]
Failed to resolve script at path /run/user/1000/just/just-f6xD0P/lune (NotFound)
error: Recipe `lune` failed with exit code 1

justfile

lune:
  #!/bin/lune run
  print("hi from lune")

Note this works fine ./hi.lua

#!/bin/lune run
print("hi from lune")

Dialga avatar Sep 30 '25 04:09 Dialga

Thanks for the report! Hmm, interesting. Of the three lines of the error message, the first two aren't from just:

[ERROR]
Failed to resolve script at path /run/user/1000/just/just-f6xD0P/lune (NotFound)

And the last one indicates that the lune binary failed with exit code 1:

error: Recipe `lune` failed with exit code 1

just saves the contents of a shebang recipe to a temporary file before executing it with the interpreter, the path to that file is what you see in the error message.

Nothing about how shebang recipes are executed has changed in a while, so I suspect this isn't an issue with just, and instead that something has changed in lune, or in how arch temporary directories and permissions work.

casey avatar Sep 30 '25 06:09 casey