FWIW, ~/.local/bin is not in my path, on Fedora. Though I can, of course,
change that. And while macOS might not be treated as representative of the
unix ecosystem, it *definitely* should be considered part of the Go
ecosystem. It does weaken the argument of ~/.local/bin being "the standard
install directory".

I'm not opposed to changing the default install location, but we should
have an answer for all platforms. And I think as long as GOPATH exists
defaulting to something else seems strange. Setting GOPATH should be a
signal that the user is at least aware of the Go conventions. People who
want to change the install location can always set GOBIN as well.

And FWIW, I know that we have decided to abandon GOPATH, but it does make
me sad. And it's something I'm dearly missing as a newcomer to *other*
languages. Having a single environment variable and the guarantee that
anything related to that new language is in that single directory - can
thus be pruned easily when I'm done experimenting, got into a screwed up
state or is guaranteed to have the answer when I'm wondering "what is
making $language_tool behave this way?" just seems like a very good idea to
me which every language should adopt. But oh well, I know that GOPATH is
dying, so I'll have to live with it, I guess.

On Thu, Jul 15, 2021 at 1:13 AM Fuzzy Fabricator <fuzzyfabrica...@gmail.com>
wrote:

> On Tuesday, July 13, 2021 at 9:50:25 PM UTC-7 rcore...@gmail.com wrote:
>
>> It would be great if there were a universal standard location in the
>> user's $HOME directory that is already on the PATH, because that always
>> trips up new users when starting to use a CLI.
>>
>> But that does not appear to be the case on the mac -- this seems to be
>> what a default user gets, at least on my system:
>> /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin
>>
>
> It doesn't include ~/go/bin, either. We shouldn't be using that then?
> Also, while macOS is a Unix, it should not be treated as representative of
> the ecosystem.
>
>
>> I didn't even know about ~/.local until this email, and I was a longtime
>> linux user prior to mostly using a mac. Windows is always different.
>
>
> It's been around for at least a decade. It's part of the freedesktop.org
> standard hierarchy[0], and notwithstanding some distributions being
> extremely slow on the uptick. Python's PEP 370[1] from 2008 specifies it -
> and as a result, pip has been installing to this directory for years,
> including on macOS.
>
> [0]
> https://www.freedesktop.org/software/systemd/man/file-hierarchy.html#Home%20Directory
> [1] https://www.python.org/dev/peps/pep-0370/
>
>
>> Anyway, given those issues, probably better to stick with the current
>> default like you say..
>>
>
> The current default is a strange, non-standard artifact of a dead design
> that's doing no one any good, least of all newcomers to Go or
> non-developers just trying to get something installed according to the
> instructions.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/8c3b97c6-5b06-4790-a504-1b2ef7e83fc0n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/8c3b97c6-5b06-4790-a504-1b2ef7e83fc0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEkBMfFzn22y%2B1n4G64x%3DrrS2n0nD2AnaZkjVTrO_VbkNkeBMA%40mail.gmail.com.

Reply via email to