{"id":15404499,"url":"https://github.com/k1low/tmpmod","last_synced_at":"2026-02-27T17:38:41.470Z","repository":{"id":234849189,"uuid":"789616451","full_name":"k1LoW/tmpmod","owner":"k1LoW","description":"tmpmod is a tool for temporary use of modified Go modules.","archived":false,"fork":false,"pushed_at":"2026-02-23T05:14:37.000Z","size":166,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-23T13:38:53.277Z","etag":null,"topics":["go","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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-04-21T04:04:08.000Z","updated_at":"2026-02-23T05:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ef2a77d-28b6-486a-b12c-a771c265eb87","html_url":"https://github.com/k1LoW/tmpmod","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":0.5675675675675675,"last_synced_commit":"93840a547b9ae731f845cbb890688b8dbc1f0d77"},"previous_names":["k1low/tmpmod"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/k1LoW/tmpmod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Ftmpmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Ftmpmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Ftmpmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Ftmpmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/tmpmod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Ftmpmod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29906477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T17:28:36.873Z","status":"ssl_error","status_checked_at":"2026-02-27T17:28:20.970Z","response_time":57,"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":["go","go-module"],"created_at":"2024-10-01T16:13:13.900Z","updated_at":"2026-02-27T17:38:41.442Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# tmpmod\n\ntmpmod is a tool for temporary use of modified Go modules.\n\n## Usage\n\nFirst, submit a pull request to the upstream repository for modification.\n\nSo, you have the modified branch. Now use `tmpmod`.\n\n### 1. Create a renamed branch ( `tmpmod switch` )\n\nCreate a branch with the module renamed to the specified ( `--as` ) name.\n\nTemporarily use a patched module by pushing the created branch and importing it.\n\n``` console\n# /src/github.com/supercool/greatmodule (fix-something)\u003e tmpmod switch --as github.com/k1low/greatmodule\nSwitching to renamed-github.com/k1low/greatmodule-by-tmpmod...\nRenaming module to github.com/k1low/greatmodule...\nCommitted\n\nUsage: push renamed-github.com/k1low/greatmodule-by-tmpmod and use `go get github.com/k1low/greatmodule@f120013f64dca79ae9da1978ac6a54d780bb98e7`\n# /src/github.com/supercool/greatmodule (renamed-github.com/k1low/greatmodule-by-tmpmod)\u003e git push k1low renamed-github.com/k1low/greatmodule-by-tmpmod\n```\n\n### 2. Retrieve source code from a branch and rename it ( `tmpmod get` )\n\nRetrieve the source code from the specified branch and rename it.\n\n``` console\n# /src/github.com/k1LoW/myproject (main)\u003e tmpmod get github.com/supercool/greatmodule@fix-something\nGetting github.com/supercool/greatmodule@fix-something...\nRenaming module to github.com/k1LoW/myproject/tmpmod/github.com/supercool/greatmodule...\n\nUsage: use `github.com/k1LoW/myproject/tmpmod/github.com/supercool/greatmodule`\n# /src/github.com/k1LoW/myproject (main)\u003e\n```\n\n#### `--rename-all`\n\nIf you want to rename also the module path in the importing source codes, use `--rename-all`.\n\n#### Revert renamed module ( `tmpmod revert` )\n\n``` console\n# /src/github.com/k1LoW/myproject (main)\u003e tmpmod revert tmpmod/github.com/supercool/greatmodule\nGetting github.com/supercool/greatmodule@fix-something...\nReverting module from github.com/k1LoW/myproject/tmpmod/github.com/supercool/greatmodule to github.com/supercool/greatmodule...\n\nReverted\n# /src/github.com/k1LoW/myproject (main)\u003e\n```\n\n## Install\n\n**homebrew tap:**\n\n```console\n$ brew install k1LoW/tap/tmpmod\n```\n\n**manually:**\n\nDownload binary from [releases page](https://github.com/k1LoW/tmpmod/releases)\n\n**go install:**\n\n```console\n$ go install github.com/k1LoW/tmpmod@latest\n```\n\n**deb:**\n\n``` console\n$ export TMPMOD_VERSION=X.X.X\n$ curl -o tmpmod.deb -L https://github.com/k1LoW/tmpmod/releases/download/v$TMPMOD_VERSION/tmpmod_$TMPMOD_VERSION-1_amd64.deb\n$ dpkg -i tmpmod.deb\n```\n\n**RPM:**\n\n``` console\n$ export TMPMOD_VERSION=X.X.X\n$ yum install https://github.com/k1LoW/tmpmod/releases/download/v$TMPMOD_VERSION/tmpmod_$TMPMOD_VERSION-1_amd64.rpm\n```\n\n**apk:**\n\n``` console\n$ export TMPMOD_VERSION=X.X.X\n$ curl -o tmpmod.apk -L https://github.com/k1LoW/tmpmod/releases/download/v$TMPMOD_VERSION/tmpmod_$TMPMOD_VERSION-1_amd64.apk\n$ apk add tmpmod.apk\n```\n\n## Why not use `replace`?\n\nBecause modules that use `replace` can't `go install`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Ftmpmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Ftmpmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Ftmpmod/lists"}