Skip to content

tar not found #2307

@johnlepikhin

Description

@johnlepikhin

Opencode doesn't use $PATH to find tar binary. Instead, hardcoded search paths are used:

[pid 32211] 16:51:53.256383 stat("/usr/bin/tar", 0x7ffd20d98280) = -1 ENOENT (No such file or directory)
[pid 32211] 16:51:53.256402 stat("/bin/tar", 0x7ffd20d98280) = -1 ENOENT (No such file or directory)

This will never work on systems like NixOS or GuixSD. Such type of Linux distributions doesn't have /usr/bin at all.

$ which tar
/run/current-system/profile/bin/tar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions