▲ 272 ▼ My fellow software engineer, It's the year 2024... (mastodon.social) submitted 2 years ago by bahmanm@lemmy.ml to c/linux@lemmy.ml 117 comments fedilink hide all child comments Shameless plug: I am the author.
[+] dinckelman@lemmy.world 115 points 2 years ago* (last edited 10 months ago) (5 children) [deleted] permalink fedilink source hideshow 10 child comments replies: [–] Laser@feddit.org 25 points 2 years ago (2 children) That's what happens when you don't set $GOPATH I think permalink fedilink source parent hideshow 4 child comments replies: [–] fmstrat@lemmy.nowsci.com 51 points 2 years ago (1 child) That doesn't make it better. permalink fedilink source parent hideshow 2 child comments replies: [–] Laser@feddit.org 10 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] fmstrat@lemmy.nowsci.com 7 points 2 years ago Just because something is worse, doesn't make the other thing good. A sane and standard default, as others have mentioned, is a small bar to meet. permalink fedilink source parent [+] dinckelman@lemmy.world 20 points 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent [–] atzanteol@sh.itjust.works 11 points 2 years ago* (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 2 points 2 years ago* (last edited 10 months ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 1 point 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent [–] turkalino@lemmy.yachts 6 points 2 years ago (1 child) Google following industry standards pick one permalink fedilink source parent hideshow 2 child comments replies: [–] mcepl@lemmy.world 1 point 2 years ago This post literally links to the leading one. permalink fedilink source parent [–] eager_eagle@lemmy.world 5 points 2 years ago off the shelf go was too annoying for me Nowadays I set GOENV_ROOT to an XDG location and use goenv instead. permalink fedilink source parent [+] dan@upvote.au -1 points 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] WolfLink@sh.itjust.works 15 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 8 points 2 years ago* (3 children) 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 fedilink source parent hideshow 6 child comments replies: [–] rotopenguin@infosec.pub 6 points 2 years ago The only practical difference between Local and Roaming and LocalLow is that developers randomly pick one and dump your game saves in there. permalink fedilink source parent [–] luciferofastora@lemmy.zip 5 points 2 years ago (1 child) Does ~/.config fit the bill for the second one? permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) There is a .local folder these days. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent
[–] Laser@feddit.org 25 points 2 years ago (2 children) That's what happens when you don't set $GOPATH I think permalink fedilink source parent hideshow 4 child comments replies: [–] fmstrat@lemmy.nowsci.com 51 points 2 years ago (1 child) That doesn't make it better. permalink fedilink source parent hideshow 2 child comments replies: [–] Laser@feddit.org 10 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] fmstrat@lemmy.nowsci.com 7 points 2 years ago Just because something is worse, doesn't make the other thing good. A sane and standard default, as others have mentioned, is a small bar to meet. permalink fedilink source parent [+] dinckelman@lemmy.world 20 points 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[–] fmstrat@lemmy.nowsci.com 51 points 2 years ago (1 child) That doesn't make it better. permalink fedilink source parent hideshow 2 child comments replies: [–] Laser@feddit.org 10 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] fmstrat@lemmy.nowsci.com 7 points 2 years ago Just because something is worse, doesn't make the other thing good. A sane and standard default, as others have mentioned, is a small bar to meet. permalink fedilink source parent
[–] Laser@feddit.org 10 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] fmstrat@lemmy.nowsci.com 7 points 2 years ago Just because something is worse, doesn't make the other thing good. A sane and standard default, as others have mentioned, is a small bar to meet. permalink fedilink source parent
[–] fmstrat@lemmy.nowsci.com 7 points 2 years ago Just because something is worse, doesn't make the other thing good. A sane and standard default, as others have mentioned, is a small bar to meet. permalink fedilink source parent
[+] dinckelman@lemmy.world 20 points 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[–] atzanteol@sh.itjust.works 11 points 2 years ago* (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 2 points 2 years ago* (last edited 10 months ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 1 point 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[+] dinckelman@lemmy.world 2 points 2 years ago* (last edited 10 months ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 1 point 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [+] dinckelman@lemmy.world 1 point 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[+] dinckelman@lemmy.world 1 point 2 years ago* (last edited 10 months ago) [deleted] permalink fedilink source parent
[–] turkalino@lemmy.yachts 6 points 2 years ago (1 child) Google following industry standards pick one permalink fedilink source parent hideshow 2 child comments replies: [–] mcepl@lemmy.world 1 point 2 years ago This post literally links to the leading one. permalink fedilink source parent
[–] mcepl@lemmy.world 1 point 2 years ago This post literally links to the leading one. permalink fedilink source parent
[–] eager_eagle@lemmy.world 5 points 2 years ago off the shelf go was too annoying for me Nowadays I set GOENV_ROOT to an XDG location and use goenv instead. permalink fedilink source parent
[+] dan@upvote.au -1 points 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] WolfLink@sh.itjust.works 15 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 8 points 2 years ago* (3 children) 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 fedilink source parent hideshow 6 child comments replies: [–] rotopenguin@infosec.pub 6 points 2 years ago The only practical difference between Local and Roaming and LocalLow is that developers randomly pick one and dump your game saves in there. permalink fedilink source parent [–] luciferofastora@lemmy.zip 5 points 2 years ago (1 child) Does ~/.config fit the bill for the second one? permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) There is a .local folder these days. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent
[–] WolfLink@sh.itjust.works 15 points 2 years ago (1 child) 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 fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 8 points 2 years ago* (3 children) 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 fedilink source parent hideshow 6 child comments replies: [–] rotopenguin@infosec.pub 6 points 2 years ago The only practical difference between Local and Roaming and LocalLow is that developers randomly pick one and dump your game saves in there. permalink fedilink source parent [–] luciferofastora@lemmy.zip 5 points 2 years ago (1 child) Does ~/.config fit the bill for the second one? permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) There is a .local folder these days. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent
[–] dan@upvote.au 8 points 2 years ago* (3 children) 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 fedilink source parent hideshow 6 child comments replies: [–] rotopenguin@infosec.pub 6 points 2 years ago The only practical difference between Local and Roaming and LocalLow is that developers randomly pick one and dump your game saves in there. permalink fedilink source parent [–] luciferofastora@lemmy.zip 5 points 2 years ago (1 child) Does ~/.config fit the bill for the second one? permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent [–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) There is a .local folder these days. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent
[–] rotopenguin@infosec.pub 6 points 2 years ago The only practical difference between Local and Roaming and LocalLow is that developers randomly pick one and dump your game saves in there. permalink fedilink source parent
[–] luciferofastora@lemmy.zip 5 points 2 years ago (1 child) Does ~/.config fit the bill for the second one? permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent
[–] dan@upvote.au 6 points 2 years ago* (last edited 2 years ago) There's some stuff in~/.config that's specific to the computer. KDE is a good example - a lot of KDE apps mix config and state in the same file. There's some solutions for syncing these files, like https://github.com/VorpalBlade/chezmoi_modify_manager which is an addon to Chezmoi that can exclude particular keys when storing an INI-style config file in Git. I'm sure there's some config files in there that are entirely specific to the computer. Things like the Wayland per-monitor scaling settings are in there somewhere I think. There's also things like data files that you may want to keep in sync across machines. They're not really configs. permalink fedilink source parent
[–] jollyrogue@lemmy.ml 1 point 2 years ago (1 child) There is a .local folder these days. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. permalink fedilink source parent hideshow 2 child comments replies: [–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent
[–] dan@upvote.au 1 point 2 years ago* I know .local exists - My comment was more about .roaming which would be nice to exist, but doesn't currently exist. Profile roaming hasn’t been solved aside from NFS mounts. I guess Syncthing might work. I'm using Chezmoi to sync some dotfiles, scripts, etc. to a Git repo and that seems to work well enough for me. I'm not syncing much yet, though. permalink fedilink source parent