{"id":13786747,"url":"https://github.com/mouuff/go-rocket-update","last_synced_at":"2026-03-17T23:38:36.776Z","repository":{"id":41892242,"uuid":"318841716","full_name":"mouuff/go-rocket-update","owner":"mouuff","description":"Easy to use and modular library to make self updating golang programs","archived":false,"fork":false,"pushed_at":"2026-02-22T17:38:22.000Z","size":45245,"stargazers_count":122,"open_issues_count":4,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-22T22:15:50.510Z","etag":null,"topics":["cross-platform","flexible","gitlab","golang","golang-library","modular","rocket","self","self-updater","update","update-checker","updater","updates"],"latest_commit_sha":null,"homepage":"","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/mouuff.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-05T16:58:56.000Z","updated_at":"2026-02-22T17:38:26.000Z","dependencies_parsed_at":"2025-01-01T05:05:18.169Z","dependency_job_id":"1cfa5f3a-ec05-4eca-9328-e7b91a831dce","html_url":"https://github.com/mouuff/go-rocket-update","commit_stats":{"total_commits":263,"total_committers":4,"mean_commits":65.75,"dds":"0.011406844106463865","last_synced_commit":"1c1c0bf91bcce62f049fd5ce4a388bc174718e32"},"previous_names":["mouuff/easy-update"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/mouuff/go-rocket-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouuff%2Fgo-rocket-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouuff%2Fgo-rocket-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouuff%2Fgo-rocket-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouuff%2Fgo-rocket-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mouuff","download_url":"https://codeload.github.com/mouuff/go-rocket-update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouuff%2Fgo-rocket-update/sbom","scorecard":{"id":661623,"data":{"date":"2025-08-11","repo":{"name":"github.com/mouuff/go-rocket-update","commit":"7cb8d213b52b9cc72878e25f15b397cd2be737c0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mouuff/go-rocket-update/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/mouuff/go-rocket-update/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/mouuff/go-rocket-update/go.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:28","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T16:23:06.681Z","repository_id":41892242,"created_at":"2025-08-21T16:23:06.681Z","updated_at":"2025-08-21T16:23:06.681Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"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":["cross-platform","flexible","gitlab","golang","golang-library","modular","rocket","self","self-updater","update","update-checker","updater","updates"],"created_at":"2024-08-03T19:01:32.982Z","updated_at":"2026-03-17T23:38:36.740Z","avatar_url":"https://github.com/mouuff.png","language":"Go","readme":"# go-rocket-update: Build self-updating Go programs\n\n[![Build Status](https://github.com/mouuff/go-rocket-update/workflows/Go/badge.svg?branch=master)](https://github.com/mouuff/go-rocket-update/actions)\n[![codecov](https://codecov.io/gh/mouuff/go-rocket-update/branch/master/graph/badge.svg)](https://codecov.io/gh/mouuff/go-rocket-update)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mouuff/go-rocket-update)](https://goreportcard.com/report/github.com/mouuff/go-rocket-update)\n[![Go Reference](https://pkg.go.dev/badge/github.com/mouuff/go-rocket-update.svg)](https://pkg.go.dev/github.com/mouuff/go-rocket-update)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n\nEnable your Golang applications to easily and safely to self update.\n\nHere is the list of [projects using this package](https://github.com/mouuff/go-rocket-update/network/dependents?package_id=UGFja2FnZS0yMjc3OTEzNjc1).\n\nIt provides the flexibility to implement different updating user experiences like auto-updating, or manual user-initiated updates, and updates from different sources.\n\n![Go rocket image](docs/social.png)\n_The gopher in this image was created by [Takuya Ueda][tu], licensed under [Creative Commons 3.0 Attributions license][cc3-by]._\n\n## Features\n\n- Flexible way to provide updates (ex: using Github or Gitlab!)\n- Cross platform support (Mac, Linux, Arm, and Windows)\n- RSA signature verification\n- Tooling to generate and verify signatures\n- Background update\n- Rollback feature\n- No external dependencies\n\n## QuickStart\n\n### Install library\n\n`go get -u github.com/mouuff/go-rocket-update/...`\n\n### Enable your App to Self Update\n\nHere is an example using Github releases:\n\n``` go\nimport (\n\t\"github.com/mouuff/go-rocket-update/pkg/provider\"\n\t\"github.com/mouuff/go-rocket-update/pkg/updater\"\n)\n```\n\n``` go\nu := \u0026updater.Updater{\n\tProvider: \u0026provider.Github{\n\t\tRepositoryURL: \"github.com/mouuff/go-rocket-update-example\",\n\t\tArchiveName:   fmt.Sprintf(\"binaries_%s.zip\", runtime.GOOS),\n\t},\n\tExecutableName: fmt.Sprintf(\"go-rocket-update-example_%s_%s\", runtime.GOOS, runtime.GOARCH),\n\tVersion:        \"v0.0.1\",\n}\n\nif _, err := u.Update(); err != nil {\n\tlog.Println(err)\n}\n```\n\nFor more examples, please take a look at some [code samples](./examples) and this [example project](https://github.com/mouuff/go-rocket-update-example).\n\n### Push an update\n\nThe updater uses a `Provider` as an input source for updates. It provides files and version for the updater.\n\nHere is few examples of providers:\n\n- `provider.Github`: It will check for the latest release on Github with a specific archive name (zip or tar.gz)\n- `provider.Gitlab`: It will check for the latest release on Gitlab with a specific archive name (zip or tar.gz)\n- `provider.Local`: It will use a local folder, version will be defined in the VERSION file (can be used for testing, or in a company with a shared folder for example)\n- `provider.Zip`: It will use a `zip` file. The version is defined by the file name (Example: `binaries-v1.0.0.tar.gz`). Use [GlobNewestFile](https://github.com/mouuff/go-rocket-update/blob/0cad960c4449b42726537e2c559786b3d6174868/pkg/provider/common.go#L24) to find the right file.\n- `provider.Gzip`: Same as `provider.Zip` but with a `tar.gz` file.\n\nThe updater will list the files and retrieve them the same way for all the providers:\n\nThe directory should have files containing `ExecutableName`.\n\nExample directory content with `ExecutableName: fmt.Sprintf(\"test_%s_%s\", runtime.GOOS, runtime.GOARCH)`:\n\n    test_windows_amd64.exe\n    test_darwin_amd64\n    test_linux_arm\n\nWe recommend using [goxc](https://github.com/laher/goxc) for compiling your Go application for multiple platforms.\n\n### Important notes\n- To update the binary, you must have the appropriate permissions for the folder where it is installed. For instance, if the binary is located in a folder such as \"Program Files\", the process will require admin permissions.\n\n### Planned features\n\nThis project is currently under construction, here is some of the things to come:\n\n- More documentation and examples\n- [Variable templating](https://github.com/mouuff/go-rocket-update/issues/14)\n- Mutliple providers (enables the use of another provider if the first one is down)\n- Update channels for Github provider (alpha, beta, ...)\n- Validation of the executable being installed\n\n\n[tu]: https://twitter.com/tenntenn\n[cc3-by]: https://creativecommons.org/licenses/by/3.0/\n\n","funding_links":[],"categories":["Software Packages","软件包","Go Tools"],"sub_categories":["DevOps Tools","DevOps 工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouuff%2Fgo-rocket-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmouuff%2Fgo-rocket-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouuff%2Fgo-rocket-update/lists"}