casey / just

🤖 Just a command runner
https://just.systems
Creative Commons Zero v1.0 Universal
17.59k stars 399 forks source link

'import' relative path issue when run symbol linked self-executbale justfile #1977

Open Ziqi-Yang opened 1 month ago

Ziqi-Yang commented 1 month ago

I have these content in my justfile:

#!/usr/bin/env -S just --working-directory . --justfile

import 'lib.just'
import 'config.just'
import 'template_var.just'

I can run the file normally. However, when I symbol linked file (for example ln -sf) and run the symbol link, it prompts error: Could not find source file for import.. (Note the symbol link is at the different directory than targeted justfile)