{"id":16884751,"url":"https://github.com/bradfitz/go-tool-cache","last_synced_at":"2025-04-13T23:16:08.679Z","repository":{"id":155343601,"uuid":"632150815","full_name":"bradfitz/go-tool-cache","owner":"bradfitz","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-09T19:33:53.000Z","size":15,"stargazers_count":104,"open_issues_count":3,"forks_count":17,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-27T13:23:13.147Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradfitz.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":"2023-04-24T20:19:52.000Z","updated_at":"2025-03-26T12:05:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"69694e40-1369-4945-bc63-3e77586418d3","html_url":"https://github.com/bradfitz/go-tool-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-tool-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-tool-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-tool-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-tool-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradfitz","download_url":"https://codeload.github.com/bradfitz/go-tool-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794569,"owners_count":21162615,"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-13T16:30:27.034Z","updated_at":"2025-04-13T23:16:08.657Z","avatar_url":"https://github.com/bradfitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-tool-cache\n\nLike Go's built-in build/test caching but wish it weren't purely stored on local disk in the `$GOCACHE` directory?\n\nWant to share your cache over the network between your various machines, coworkers, and CI runs without all that GitHub actions/caches tarring and untarring?\n\nAlong with a [modification to Go's `cmd/go` tool](https://go-review.googlesource.com/c/go/+/486715) ([open proposal](https://github.com/golang/go/issues/59719)), this repo lets you write\ncustom `GOCACHE` implementations to handle the cache however you'd like.\n\n## Status\n\nCurrently you need to build your own Go toolchain to use this. As of 2023-04-24 it's still an open proposal \u0026 work in progress.\n\n## Using\n\nFirst, build your cache child process. For example,\n\n```sh\n$ go install github.com/bradfitz/go-tool-cache/cmd/go-cacher\n```\n\nThen tell Go to use it:\n\n```sh\n$ GOCACHEPROG=$HOME/go/bin/go-cacher go install std\n```\n\nSee some stats:\n\n```sh\n$ GOCACHEPROG=\"$HOME/go/bin/go-cacher --verbose\" go install std\nDefaulting to cache dir /home/bradfitz/.cache/go-cacher ...\ncacher: closing; 548 gets (0 hits, 548 misses, 0 errors); 1090 puts (0 errors)\n```\n\nRun it again and watch the hit rate go up:\n\n```sh\n$ GOCACHEPROG=\"$HOME/go/bin/go-cacher --verbose\" go install std\nDefaulting to cache dir /home/bradfitz/.cache/go-cacher ...\ncacher: closing; 808 gets (808 hits, 0 misses, 0 errors); 0 puts (0 errors)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fgo-tool-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradfitz%2Fgo-tool-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fgo-tool-cache/lists"}