{"id":36444939,"url":"https://github.com/solsw/modcacheclear","last_synced_at":"2026-01-11T22:04:10.393Z","repository":{"id":191649529,"uuid":"684940899","full_name":"solsw/modcacheclear","owner":"solsw","description":"modcacheclear tool clears Go module cache","archived":false,"fork":false,"pushed_at":"2023-12-16T14:43:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T08:05:05.063Z","etag":null,"topics":["cache","go","module"],"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/solsw.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-08-30T07:01:47.000Z","updated_at":"2023-08-30T07:11:06.000Z","dependencies_parsed_at":"2024-06-21T06:55:27.910Z","dependency_job_id":"dfdb6b23-6557-4c49-adf9-e211dd201a47","html_url":"https://github.com/solsw/modcacheclear","commit_stats":null,"previous_names":["solsw/modcacheclear"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/solsw/modcacheclear","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fmodcacheclear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fmodcacheclear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fmodcacheclear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fmodcacheclear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solsw","download_url":"https://codeload.github.com/solsw/modcacheclear/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fmodcacheclear/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28324856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T18:42:50.174Z","status":"ssl_error","status_checked_at":"2026-01-11T18:39:13.842Z","response_time":60,"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":["cache","go","module"],"created_at":"2026-01-11T22:04:10.330Z","updated_at":"2026-01-11T22:04:10.384Z","avatar_url":"https://github.com/solsw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modcacheclear\n\n**modcacheclear** tool clears Go [module cache](https://go.dev/ref/mod#module-cache).\n\n**modcacheclear** operates on modules from the [module cache](https://go.dev/ref/mod#module-cache) which have [go.mod](https://go.dev/ref/mod#go-mod-file) file and valid [SemVer](https://semver.org/#semantic-versioning-specification-semver) in the corresponding directory name.\n\n**modcacheclear** without any flags prints [versions](https://go.dev/ref/mod#versions) of all modules (identified with [module paths](https://go.dev/ref/mod#module-path)) from the [module cache](https://go.dev/ref/mod#module-cache).\n\n**modcacheclear** tool supports the following flags:\n\n***-p*** regular expression pattern to match [module path](https://go.dev/ref/mod#module-path)\n\n`modcacheclear -p ^github.com/solsw` prints [versions](https://go.dev/ref/mod#versions) of all modules starting with 'github.com/solsw' from the [module cache](https://go.dev/ref/mod#module-cache).\n\n***-v*** number of module [versions](https://go.dev/ref/mod#versions) to keep\n\n`modcacheclear -p github.com/solsw/modhelper -v 2` removes all but two [versions](https://go.dev/ref/mod#versions) with [maximum](https://semver.org/#spec-item-11) [SemVer](https://semver.org/#semantic-versioning-specification-semver) of 'github.com/solsw/modhelper' module from the [module cache](https://go.dev/ref/mod#module-cache).\n\n`modcacheclear -v 1` removes all but one [version](https://go.dev/ref/mod#versions) with [maximum](https://semver.org/#spec-item-11) [SemVer](https://semver.org/#semantic-versioning-specification-semver) of all modules from the [module cache](https://go.dev/ref/mod#module-cache).\n\n***-a*** remove all module [versions](https://go.dev/ref/mod#versions)\n\n`modcacheclear -p github.com/solsw/modhelper -a` removes all [versions](https://go.dev/ref/mod#versions) of 'github.com/solsw/modhelper' module from the [module cache](https://go.dev/ref/mod#module-cache); if then the parent directory becomes empty, it is also deleted.\n\n***-printskipped*** print skipped [module paths](https://go.dev/ref/mod#module-path)\n\n***-nooutput*** produce no output except errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolsw%2Fmodcacheclear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolsw%2Fmodcacheclear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolsw%2Fmodcacheclear/lists"}