{"id":37126360,"url":"https://github.com/shyp/bump_version","last_synced_at":"2026-01-14T14:36:11.861Z","repository":{"id":57517105,"uuid":"51421033","full_name":"Shyp/bump_version","owner":"Shyp","description":"Go tool for bumping version numbers","archived":false,"fork":false,"pushed_at":"2022-12-15T15:07:03.000Z","size":15,"stargazers_count":17,"open_issues_count":0,"forks_count":7,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-08-15T10:55:01.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/Shyp/bump_version","language":"Go","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/Shyp.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}},"created_at":"2016-02-10T04:34:08.000Z","updated_at":"2023-05-17T23:14:15.000Z","dependencies_parsed_at":"2023-01-29T03:30:54.855Z","dependency_job_id":null,"html_url":"https://github.com/Shyp/bump_version","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Shyp/bump_version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shyp%2Fbump_version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shyp%2Fbump_version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shyp%2Fbump_version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shyp%2Fbump_version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shyp","download_url":"https://codeload.github.com/Shyp/bump_version/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shyp%2Fbump_version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-14T14:36:11.078Z","updated_at":"2026-01-14T14:36:11.666Z","avatar_url":"https://github.com/Shyp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bump_version\n\nThis is a tool for bumping version numbers in Go files.\n\n## Installation\n\nFor the moment, you'll need a working Go installation.\n\n```\ngo get github.com/Shyp/bump_version\n```\n\nThat will install the `bump_version` binary to your `$GOPATH`.\n\n## Usage\n\n```\nbump_version \u003cmajor|minor|patch\u003e \u003cfilename\u003e\n```\n\nThis will:\n\n1. Look for a `const` named `version`, `VERSION`, or `Version` in that file.\n   Here's an example:\n\n    ```go\n    package main\n\n    const VERSION = \"0.2.1\"\n    ```\n\n2. Apply the version bump - `bump_version major` will increment the major\nversion number, `bump_version minor` will increment the middle version number,\n`bump_version patch` will increment the last version number. If your version is\n\"0.3\" and you ask for `bump_version minor`, the new version will be \"0.4\".\n\n3. Write the new file to disk, with the bumped version.\n\n4. Add the file with `git add \u003cfilename\u003e`.\n\n5. Add a commit with the message \"x.y.z\" (`git commit -m \"\u003cnew_version\u003e\"`)\n\n6. Tag the new version.\n\nIf any of these steps fail, `bump_version` will abort.\n\n## Notes\n\nThe VERSION should be a string in one of these formats: \"3\", \"0.3\",\n\"0.3.4\". Any prefixes like \"v\" or suffixes like \"0.3.3-beta\" will be\nstripped or generate an error.\n\n- `\"v0.1\"` - parse error, no prefixes allowed.\n- `bump_version(\"0.1\", \"minor\")` -\u003e \"0.2\"\n- `bump_version(\"0.1\", \"patch\")` -\u003e \"0.1.1\"\n- `bump_version(\"0.1\", \"major\")` -\u003e \"1.1\"\n- `bump_version(\"0.1-beta\", \"major\")` -\u003e \"1.1\"\n- `bump_version(\"devel\", \"major\")` -\u003e parse error.\n\nWe use the VERSION in code exclusively - any existing git tags are ignored.\n\nAlan Shreve would like to note that you probably shouldn't store version\nnumbers in code - instead, check in `const VERSION = \"devel\"`, then build your\nproject via:\n\n```\ngo build -ldflags=\"-X main.VERSION=0.2\"\n```\n\nWhich you are welcome to do!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyp%2Fbump_version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshyp%2Fbump_version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyp%2Fbump_version/lists"}