Shameless plug: I am the author.

You are viewing a single thread.
View all comments
116 points

Golang puts shit specifically in $HOME/go. Not even .go. Just plain go.

Why is it so difficult to follow industry standards

permalink
report
reply
25 points

That’s what happens when you don’t set $GOPATH I think

permalink
report
parent
reply
52 points

That doesn’t make it better.

permalink
report
parent
reply
9 points

It makes it insofar better to me that you have the option to change it. You can’t change Mozilla programs to use anything but .mozilla (apart from modifying the source code of course) so for me seeing the folder is at least a way of telling me that the variable is unset.

The better question is which folder is suited the best to store the stuff that goes into $GOPATH

permalink
report
parent
reply
20 points

Of course, but that’s not the point. There should be a sane default, and there isn’t one

permalink
report
parent
reply
13 points
*

Go pisses me off with that. I separate projects the way I want but go wants every project written in go in one big directory?

permalink
report
parent
reply
2 points

I really didn’t like this either. It’s quite surprising, because the rest of Go tooling is quite nice. Not having a venv, or at least something like pnpm-style node_modules is weird

permalink
report
parent
reply
1 point

Why would go have a virtual environment or dep tree like node_modules equivalent, it’s not interpreted or dynamically linked.

With modules, dependencies can be vendored.

permalink
report
parent
reply
6 points

Google

following industry standards

pick one

permalink
report
parent
reply
1 point

This post literally links to the leading one.

permalink
report
parent
reply
5 points

off the shelf go was too annoying for me

Nowadays I set GOENV_ROOT to an XDG location and use goenv instead.

permalink
report
parent
reply
-1 points
Deleted by creator
permalink
report
parent
reply
15 points

What I want in $HOME are the following directories:

If I’m on a GUI-based environment:

  • Desktop
  • Documents
  • Downloads

In general:

  • .local
  • my_junk_folder_i_made

I’d like everything else to live within something like ~/.local thanks

permalink
report
parent
reply
8 points
*

Maybe Linux should have .local and .roaming folders like Windows. local = only useful on this system, roaming = good to sync across systems. Config would be in .roaming if it’s not machine-specific.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.7K

    Monthly active users

  • 7.6K

    Posts

  • 203K

    Comments