Skip to content

$PATH is set before $HOME #31

@henrikingo

Description

@henrikingo

Thank you for providing these images <3

In /etc/environment you have

/snap/bin:$HOME/.local/bin:/opt/pipx_bin:$HOME/.cargo/bin:$HOME/.config/composer/vendor/bin:$HOME/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

But this is too early. $HOME isn't set yet, so if you do echo $PATH you'll notice it contains literally the string '$HOME'. As a result, rust/cargo appear as not installed, I assume .dotnet would as well.

Fix: I moved those to /home/runner/.bashrc instead.

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