Skip to content

Cannot run 'just --init' on Termux (Android CLI) #1492

@lyderic

Description

@lyderic

I installed Termux on my Android phone. I tried to initialise a justfile by running 'just --init' on it. It doesn't work.

Log of my actions:

$ curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
install: Repository:  https://github.com/casey/just
install: Crate:       just
install: Tag:         1.11.0
install: Target:      aarch64-unknown-linux-musl
install: Destination: /data/data/com.termux/files/home/bin
install: Archive:     https://github.com/casey/just/releases/download/1.11.0/just-1.11.0-aarch64-unknown-linux-musl.tar.gz
install: error: just already exists in /data/data/com.termux/files/home/bin

$ just -V
just 1.11.0

$ pwd
/data/data/com.termux/files/home
$ just --init
error: I/O error reading directory `/data/data`: Permission denied (os error 13)

$ ls -l /data/data
ls: cannot open directory '/data/data': Permission denied

Notes:

  • The directory I run just from (/data/data/com.termux/files/home) is definitely r/w'able
  • Compiling just myself with 'cargo install just' yields the same result.
  • If I manually create a justfile in /data/data/com.termux/files/home, then it works:
$ cat > justfile << EOF
> foo:
>   @echo foo
> EOF
$ just
foo

I don't understand why just tries to read this /data/data directory when initialising a new justfile...

Has anyone been able to successfully run just --init on Termux?

Thanks,
L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions