least in linux)
I mean we have to download it from golang.org
then remove the already existing version and then copy that downloaded version
I was expecting a command for it, something like:
go update or something like this
use your package manager or goenv
Apart from what has already been suggested, you could also try automating with a script, that's what I did for Discord. I usually have Go installed on my machine trough my package manager though
For macOS, I’m sure Brew would do this automatically. But even if you download manually (which I generally prefer), The installer itself cleans up the previous installation. Install HomeBrew for linux from here: https://brew.sh/
Many distros have outdated versions in their package managers
do something like gvm (go version manager) resolve the problem?
There is some way that we can handle this automatically. For example, look at this link https://golang.org/doc/manage-install Or You can use gvm 'go, version manager' In macOS, we have 'brew', and for windows, 'choco' is the best way to install and update golang automatically
That's why I suggested a script (or as the person before me, goenv), I use distros that tend to have a more updated go version
I already have brew tho but my problem is not that I mean go compiler is accomplishing a harder job: updating packages and I'm just amazed why it cannot update itself automatically, that's all and for windows and macOS, they have official installer, but for linux, we have to remove old version, and then copy and paste a whole directory there it's not that much hard, nor is it complicated just wanted to see if it actually has any reason behind it or not
Professional developers tend to use macOS. That's why.
What distro are you using? I never had to do something like that
Count your blessings then, that you don't have to work with like a Ruby environment with diff versions, gem compatibility and something breaking all the time.🤣
Yeah Linux development is a nightmare. Python, each distro shipping their own version number, Ruby often comes outdated and you need to use rvm, node.js is just a mess for your personal directory, and so on
Обсуждают сегодня