Skip to content

Change default install location to zigup's directory #13

@marler8997

Description

@marler8997

The current install location for zigup is ~/bin on posix systems. The reason for this is that

  • It's likely writeable by the current user
  • It's a common location that is added to the users PATH

However, another default location could be the path to the zigup binary itself. This solves the PATH issue because it means zig will be reachable in the same manner that the user is calling zigup. For example, if the user installed zigup to a location that is in the PATH, then zig will be available in the same PATH entry. If zigup is not availabe in PATH, then maybe the user didn't want it to be.

Note that the default install location doesn't preclude other solutions. For example, this default solution is not viable for the "Nix Package Manager" because zigup would be installed to its own directory (which should be readonly). In this case I expect the Nix expression to create the zigup and configure a different default install location, perhaps ~/bin. It seems fine to change the default install location for versions of zigup that are installed by package managers and a version that is meant to be a standalone executable installed by the user.

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