Skip to content

usrlocalsharelima.Dir() doesn't work when called from tests #3208

@jandubois

Description

@jandubois

During tests the os.Executable is located in a temp directory, and the guestagent binary cannot be located relative to that directory.

This is not an issue right now because we don't call this function from our existing tests.

failed to find "lima-guestagent.Linux-aarch64" binary for "/var/folders/ds/jk3wz4n96d54wp16s0tg7d2r0000gn/T/go-build4137918305/b001/limatmpl.test", attempted [/var/folders/ds/jk3wz4n96d54wp16s0tg7d2r0000gn/T/go-build4137918305/b001/lima-guestagent.Linux-aarch64 /var/folders/ds/jk3wz4n96d54wp16s0tg7d2r0000gn/T/go-build4137918305/share/lima/lima-guestagent.Linux-aarch64]

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