-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default install location to zigup's directory #13
Comments
|
Would be nice if this respected XDG spec and put it in ~/.local instead. Polluting the home folder is generally considered a bad move. |
I have a fork that does this. |
Both rustup and ghcup install in |
Just because they do it doesn't mean zigup should. rustup even has piping a shellscript into curl straight from the internet as an installation method, which is bad practice. Completely ignoring XDG spec for new software to me seems silly, hardcording paths is simply bad design no matter how you cut it. |
Nope. However, as a user, I'm willing to do that (for once) for the added convenience.
I agree. Just did some googling and came across this: rust-lang/rustup#247 Edit: rustup also has this issue: rust-lang/rustup#2418 |
To me checking if the It's a difficult choice to go back once every script or build system relies on certain stuff being available in hardcoded locations rather than checking for environment variables first. It's been a long running issue for multiple software, even Firefox (.mozilla in home) has this going on for 17 years! https://bugzilla.mozilla.org/show_bug.cgi?id=259356 |
Sounds good, there's still Windows with AppData though (seems like zigup doesn't support Windows yet anyways) |
Now that zigup is finally working on Windows (thanks to the zarc project for extracting zip files) and we have prebuilt binaries, I thought about this issue for Windows. For Windows I'm going to go with what I originally proposed which is to install the Having said this, I'm thinking about removing the |
I feel like this issue has come to a resolution. On windows the install directory is a directory named "zig" that lives in the same directory as For non-default cases we can add a build option to change the default directory to something else. I'll add this if anyone indicates they would like this and this covers all the non-default cases I can think of. |
The current install location for
zigup
is~/bin
on posix systems. The reason for this is thatPATH
However, another default location could be the path to the
zigup
binary itself. This solves thePATH
issue because it meanszig
will be reachable in the same manner that the user is callingzigup
. For example, if the user installedzigup
to a location that is in thePATH
, thenzig
will be available in the samePATH
entry. Ifzigup
is not availabe inPATH
, 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 thezigup
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.The text was updated successfully, but these errors were encountered: