{"id":17642657,"url":"https://github.com/followtheprocess/build","last_synced_at":"2025-10-17T22:37:05.812Z","repository":{"id":257813237,"uuid":"868511762","full_name":"FollowTheProcess/build","owner":"FollowTheProcess","description":"Ridiculously easy debug.BuildInfo","archived":false,"fork":false,"pushed_at":"2025-03-18T09:04:13.000Z","size":137,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T10:23:05.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FollowTheProcess.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":"2024-10-06T15:17:51.000Z","updated_at":"2025-03-18T09:04:16.000Z","dependencies_parsed_at":"2024-10-07T05:42:33.033Z","dependency_job_id":"ee67521b-8b0b-46a1-8e7e-306e0c821433","html_url":"https://github.com/FollowTheProcess/build","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"0d3d44e836fd32d252c77655f394639e4d9ca9f6"},"previous_names":["followtheprocess/build"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FollowTheProcess","download_url":"https://codeload.github.com/FollowTheProcess/build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281312,"owners_count":20752213,"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","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":"2024-10-23T08:23:33.226Z","updated_at":"2025-10-17T22:37:05.794Z","avatar_url":"https://github.com/FollowTheProcess.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build\n\n[![License](https://img.shields.io/github/license/FollowTheProcess/build)](https://github.com/FollowTheProcess/build)\n[![Go Reference](https://pkg.go.dev/badge/go.followtheprocess.codes/build.svg)](https://pkg.go.dev/go.followtheprocess.codes/build)\n[![Go Report Card](https://goreportcard.com/badge/github.com/FollowTheProcess/build)](https://goreportcard.com/report/github.com/FollowTheProcess/build)\n[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/build?logo=github\u0026sort=semver)](https://github.com/FollowTheProcess/build)\n[![CI](https://github.com/FollowTheProcess/build/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/build/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/FollowTheProcess/build/branch/main/graph/badge.svg)](https://codecov.io/gh/FollowTheProcess/build)\n\n## Project Description\n\nRidiculously simple Go build info 🛠️\n\n## Installation\n\n```shell\ngo get go.followtheprocess.codes/build@latest\n```\n\n## Quickstart\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"go.followtheprocess.codes/build\"\n)\n\nfunc main() {\n    info, ok := build.Info()\n    if !ok {\n        fmt.Fprintf(os.Stderr, \"could not get build info\")\n        os.Exit(1)\n    }\n\n    fmt.Printf(\"%s\\n\", info)\n}\n```\n\nGets you...\n\n```shell\ngo:           go1.23.2\npath:         go.followtheprocess.codes/build/cmd/build\nos:           darwin\narch:         amd64\nvcs:          git\nversion:      (devel)\ncommit:       5e8b8a68867eff5f754bfecdbc8baeb2c14c711c\ndirty:        true\ntime:         2024-10-06T10:39:12Z\nmain:         mod  go.followtheprocess.codes/build  (devel)  \n```\n\n\u003e [!TIP]\n\u003e It's also JSON serialisable!\n\n```go\npackage main\n\nimport (\n    \"encoding/json\"\n    \"fmt\"\n    \"os\"\n\n    \"go.followtheprocess.codes/build\"\n)\n\nfunc main() {\n    info, _ := build.Info()\n    if err := json.NewEncoder(os.Stdout).Encode(info); err != nil {\n        fmt.Fprintf(os.Stderr, \"could not write JSON: %v\\n\", err)\n        os.Exit(1)\n    }\n}\n```\n\nGets you...\n\n```json\n{\n  \"main\": {\n    \"path\": \"go.followtheprocess.codes/build\",\n    \"version\": \"(devel)\"\n  },\n  \"time\": \"2024-10-06T10:39:12Z\",\n  \"go\": \"go1.23.2\",\n  \"path\": \"go.followtheprocess.codes/build/cmd/build\",\n  \"os\": \"darwin\",\n  \"arch\": \"amd64\",\n  \"vcs\": \"git\",\n  \"version\": \"(devel)\",\n  \"dirty\": true\n}\n```\n\n`build.Info` returns a `BuildInfo` struct from which you can take any component of the build info:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"go.followtheprocess.codes/build\"\n)\n\nfunc main() {\n    info, ok := build.Info()\n    if !ok {\n        fmt.Fprintf(os.Stderr, \"could not get build info\")\n        os.Exit(1)\n    }\n\n    fmt.Printf(\"Version: %s\\n\", info.Version)\n    fmt.Printf(\"Commit: %s\\n\", info.Commit)\n}\n```\n\n### Credits\n\nThis package is wholly based on the Go internal implementation of `runtime/debug.BuildInfo`, this is just a slightly nicer wrapper that makes it easier to access common settings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollowtheprocess%2Fbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fbuild/lists"}