{"id":23141675,"url":"https://github.com/zekrotja/goup","last_synced_at":"2025-08-17T13:31:53.423Z","repository":{"id":161788600,"uuid":"635949402","full_name":"zekroTJA/goup","owner":"zekroTJA","description":"🚀 A simple platform and shell agnostic installer and version manager for Go.","archived":false,"fork":false,"pushed_at":"2025-01-04T14:49:08.000Z","size":2551,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-17T11:44:03.022Z","etag":null,"topics":["cli","go","installer","rust","tool","version-manager"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zekroTJA.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T20:01:34.000Z","updated_at":"2025-06-08T18:57:55.000Z","dependencies_parsed_at":"2024-07-21T23:03:28.753Z","dependency_job_id":null,"html_url":"https://github.com/zekroTJA/goup","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/zekroTJA/goup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fgoup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fgoup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fgoup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fgoup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekroTJA","download_url":"https://codeload.github.com/zekroTJA/goup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekroTJA%2Fgoup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856561,"owners_count":24657688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","installer","rust","tool","version-manager"],"created_at":"2024-12-17T14:14:10.027Z","updated_at":"2025-08-17T13:31:53.399Z","avatar_url":"https://github.com/zekroTJA.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 goup\n\nSimple, platform and shell agnostic installer and version manager for Go.\n\n![](assets/demo.gif)\n\n## Features\n\n- Install, manage and switch between different versions of the Go SDK.\n- Multi-shell compatible (Bash, Zsh, Nushell, Powershell)\n- Multi-platform compatible (Linux, macOS \u0026 Windows).\n- Tries to be as simple and \"out-of-the-way\" as possible.\n- Should be pretty fast.\n- Uses the precompiled binaries instead of compiling the sources locally.\n\n## Installation\n\n### Install Script\n\nYou can use the provided [install script](scripts/install.sh).\n\n\u003e [!WARNING]  \n\u003e Please check the install script from the given source URL in the command before executing the command below!\n\n```bash\ncurl -sSfL https://raw.githubusercontent.com/zekroTJA/goup/refs/heads/main/scripts/install.sh | sudo bash -\n```\n\n### Binaries\n\nSimply download the latest binaries from the [Releases Page](https://github.com/zekrotja/goup/releases).\n\n### cargo\n\nAlternatively, you can also install goup using cargo.\n\n```bash\ncargo install goup\n```\n\nIf you want the latest unreleased version from the `master` branch, use the following command.\n\n```bash\ncargo install --git https://github.com/zekroTJA/goup\n```\n\nAfter that, run the following command to setup your environment to use goup to handle your Go versions.\n```bash\ngoup env -p\nsource ~/.profile\n```\n\nThis will add the required environment variables and `$PATH` extension to your `.profile` file.\n\nAlternatively, if you just want to fiddle around with the tool, you can also just apply the environment to your current terminal session.\n\n```bash\neval \"$(goup env)\"\n```\n\n## How does it work?\n\ngoup uses the [Go Repository on GitHub](https://github.com/golang/go) to query available versions using the `git ls-remote --tags` command *([it is planned](https://github.com/zekroTJA/goup/issues/1) to add a fallback which uses the GitHub API when `git` is not available on the current system)*. This version list is then used to download selected versions from the official download server *(https://go.dev/dl/)*. The downloaded SDKs are then directly un-zipped and un-packed while being downloaded into goup's worksapce directory, which is in the current users home directory at `$HOME/.local/goup`. All downloaded SDK versions are then stored in `$HOME/.local/goup/installations`. When selecting a specific installation version, the location in the installation directory is sym-linked to `$HOME/.local/goup/current` and the selected version is stored in the file `$HOME/.local/goup/.current_version`.\n\nUsing the command `goup env -p`, this will set the path of `$HOME/.local/goup/current/go` as your `GOROOT` environment variable and will add `$HOME/.local/goup/current/go/bin` to the beginning of your `$PATH`. This way, goup does not touch your local installation of Go and you cann roll back to before simply by removing the goup entries in your `.profile` and deleting the `$HOME/.local/goup` directory.\n\n## Credits\n\nThis tool is very much inspired by the both wonderful tools [Schnitz' fnm](https://github.com/Schniz/fnm) and [Rust's rustup](https://github.com/rust-lang/rustup).\n\n---\n\n© 2023 Ringo Hoffmann.  \nCovered by the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrotja%2Fgoup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekrotja%2Fgoup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrotja%2Fgoup/lists"}