{"id":20601781,"url":"https://github.com/c2nes/gv","last_synced_at":"2026-05-13T20:34:53.570Z","repository":{"id":141696574,"uuid":"339090368","full_name":"c2nes/gv","owner":"c2nes","description":"Yet another Go version manager","archived":false,"fork":false,"pushed_at":"2021-12-23T13:50:45.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T02:02:40.943Z","etag":null,"topics":["go","golang","version-manager"],"latest_commit_sha":null,"homepage":"https://github.com/c2nes/gv","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c2nes.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-02-15T13:42:37.000Z","updated_at":"2021-12-23T13:50:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8749856-e81e-4607-a8e9-dbb351fbc508","html_url":"https://github.com/c2nes/gv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c2nes/gv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2nes%2Fgv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2nes%2Fgv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2nes%2Fgv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2nes%2Fgv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c2nes","download_url":"https://codeload.github.com/c2nes/gv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2nes%2Fgv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","version-manager"],"created_at":"2024-11-16T09:11:59.758Z","updated_at":"2026-05-13T20:34:53.557Z","avatar_url":"https://github.com/c2nes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# gv\n\n`gv` is a simple Go version manager implemented as a standalone shell script.\n\n`gv` is designed to be used as a Go wrapper. When used this way `gv` will automatically resolve, install, and delegate to the correct version of Go when invoked as `go` or `gofmt`. This allows `gv` to seamlessly integrate with existing tools which call out to `go`.\n\n`gv` supports three symbolic versions: \"system\", \"stable\", and \"unstable\". The system version acts as the default version for all commands. It itself defaults to \"stable\", but can be configured otherwise via `gv -S \u003cversion\u003e`. The stable and unstable releases correspond to the releases found on https://golang.org/dl/ and can be updated via `gv -u` and `gv -U` respectively.\n\nOther features,\n\n* Project / directory specific versions via `.goversion` files.\n* Version override via the `$GOVERSION` environment variable.\n* Install and upgrade stable, unstable, and development (gotip) versions of Go.\n\n## Installation\n\nDownload [`gv`](https://raw.githubusercontent.com/c2nes/gv/master/gv), mark it executable, and place it somewhere in `$PATH`,\n\n``` shell\n# Replace ~/bin with your bin directory of choice\ncurl -fsLO https://raw.githubusercontent.com/c2nes/gv/master/gv \u0026\u0026 chmod +x gv \u0026\u0026 mv gv ~/bin\n```\n\nIf you plan to use `gv` as a wrapper, then create `go` and `gofmt` symlinks as well,\n\n``` shell\n# Replace ~/bin with your bin directory of choice\nln -sv ~/bin/gv ~/bin/go\nln -sv ~/bin/gv ~/bin/gofmt\n```\n\n:warning: **Warning:** Make there are no other copies of `go` / `gofmt` in your `$PATH`. If there are, remove them or ensure the copies pointing to `gv` come first.\n\n## Usage\n\nFor basic usage simply use `go` and `gofmt` as usual. The latest stable Go release will be installed as the system default,\n\n``` shellsession\n$ go version\nDownloading go1.15.8.linux-amd64.tar.gz ...\n################################################################ 100.0%\nUnpacking go1.15.8.linux-amd64.tar.gz ...\ngo version go1.15.8 linux/amd64\n\n$ go version\ngo version go1.15.8 linux/amd64\n```\n\n## Upgrade Go\n\nUse `gv -u` and `gv -U` to upgrade the \"stable\" and \"unstable\" releases respectively,\n\n``` shellsession\n$ gv -u\nDownloading go1.15.8.linux-amd64.tar.gz ...\n################################################################ 100.0%\nUnpacking go1.15.8.linux-amd64.tar.gz ...\n$ ~/sdk/stable/bin/go version\ngo version go1.15.8 linux/amd64\n$ gv -U\nDownloading go1.16rc1.linux-amd64.tar.gz ...\n################################################################ 100.0%\nUnpacking go1.16rc1.linux-amd64.tar.gz ...\n$ ~/sdk/unstable/bin/go version\ngo version go1.16rc1 linux/amd64\n```\n\n## Set project/directory version\n\n``` shellsession\n$ gv -s unstable\n$ go version\ngo version go1.16rc1 linux/amd64\n$ cat .goversion\nunstable\n$ gv -s go1.14\n$ go version\ngo version go1.14 linux/amd64\n```\n\n## Set system version\n\n``` shellsession\n$ gv -S unstable\n$ go version\ngo version go1.16rc1 linux/amd64\n$ readlink ~/sdk/system\nunstable\n$ gv -s go1.14\n$ readlink ~/sdk/system\ngo1.14\n```\n\n## Install a specific version\n\n``` shellsession\n$ gv -i go1.15.3\nDownloading go1.15.3.linux-amd64.tar.gz ...\n################################################################ 100.0%\nUnpacking go1.15.3.linux-amd64.tar.gz ...\n$ ~/sdk/go1.15.3/bin/go version\ngo version go1.15.3 linux/amd64\n```\n\n## Use a version-specific wrapper\n\n``` shellsession\n$ go1.15.3 version\ngo version go1.15.3 linux/amd64\n```\n\n## Check the configured version\n\nThe current version,\n\n``` shellsession\n$ go version\ngo version go1.15.8 linux/amd64\n```\n\nThe unstable version,\n\n``` shellsession\n$ GOVERSION=unstable go version\ngo version go1.16rc1 linux/amd64\n```\n\nThe system (i.e. default) version,\n\n``` shellsession\n$ GOVERSION=system go version\ngo version go1.15.8 linux/amd64\n```\n\n## Install the development version of Go\n\n``` shellsession\n$ gv -i gotip\nCloning into '/home/chris/sdk/gotip'...\nremote: Counting objects: 10336, done\nremote: Finding sources: 100% (10336/10336)\nremote: Total 10336 (delta 1335), reused 6667 (delta 1335)\nReceiving objects: 100% (10336/10336), 24.24 MiB | 1.21 MiB/s, done.\nResolving deltas: 100% (1335/1335), done.\nUpdating files: 100% (9480/9480), done.\nUpdating the go development tree...\nFrom https://go.googlesource.com/go\n * branch            master     -\u003e FETCH_HEAD\nHEAD is now at 33d72fd doc/faq: update generics entry to reflect accepted proposal\nBuilding Go cmd/dist using /home/chris/sdk/go1.15.8. (go1.15.8 /amd64)\nBuilding Go toolchain1 using /home/chris/sdk/go1.15.8.\nBuilding Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.\nBuilding Go toolchain2 using go_bootstrap and Go toolchain1.\nBuilding Go toolchain3 using go_bootstrap and Go toolchain2.\nBuilding packages and commands for linux/amd64.\n---\nInstalled Go for linux/amd64 in /home/chris/sdk/gotip\nInstalled commands in /home/chris/sdk/gotip/bin\nSuccess. You may now run 'gotip'!\n$ GOVERSION=gotip go version  # or \"gotip version\"\ngo version devel +33d72fd Mon Feb 15 01:54:22 2021 +0000 linux/amd64\n```\n\n## Show `gv` help\n\n```shellsession\n$ gv -h\nusage: gv [-uUisSh]\n   or: gv -c cmd [arguments]\n   or: go|gv \u003ccommand\u003e [arguments]\n   or: gofmt [flags] [path ...]\n\ngv is a Go version manager and wrapper\n\n  -u\n        Install or upgrade the stable release\n  -U\n        Install or upgrade the unstable release\n  -i version\n        Install the specified version (e.g. \"go1.15.6\", \"gotip\", etc)\n  -s version\n        Set (and install) the Go version for the current directory (i.e. update .goversion)\n  -S version\n        Set (and install) the system Go version (i.e. update ~/sdk/system symlink)\n  -l\n        List versions available to be installed\n  -c cmd\n        Run the given command instead of delegating based on $0\n  -h\n        Show this usage information\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc2nes%2Fgv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc2nes%2Fgv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc2nes%2Fgv/lists"}