Skip to content

fix the exec.LookPath issue #112

@AnnatarHe

Description

@AnnatarHe

in file https://github.com/shelltime/cli/blob/main/model/ccusage_service.go#L213 and https://github.com/shelltime/cli/blob/main/model/ccusage_service.go#L214, we call exec.LookPath to get the executable bunx or npx. But it could not find the daemon service. maybe because the PATH is not inherited from the env.

pls create a custom LookPath function try to find the properly executable binary.

@claude

Metadata

Metadata

Assignees

No one assigned

    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