{"id":16942567,"url":"https://github.com/tmthrgd/gomodpriv","last_synced_at":"2025-08-25T15:20:31.297Z","repository":{"id":57483756,"uuid":"193475557","full_name":"tmthrgd/gomodpriv","owner":"tmthrgd","description":"A small tool to automatically set the GOPRIVATE environment variable.","archived":false,"fork":false,"pushed_at":"2024-12-13T23:02:56.000Z","size":20,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T15:21:18.758Z","etag":null,"topics":["github","go-modules","golang"],"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/tmthrgd.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":"2019-06-24T09:31:26.000Z","updated_at":"2024-12-13T23:03:00.000Z","dependencies_parsed_at":"2024-10-13T21:12:23.188Z","dependency_job_id":"23124106-70db-4494-8bd3-84b97d9686d6","html_url":"https://github.com/tmthrgd/gomodpriv","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/tmthrgd%2Fgomodpriv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthrgd%2Fgomodpriv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthrgd%2Fgomodpriv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmthrgd%2Fgomodpriv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmthrgd","download_url":"https://codeload.github.com/tmthrgd/gomodpriv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248466968,"owners_count":21108571,"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":["github","go-modules","golang"],"created_at":"2024-10-13T21:12:17.227Z","updated_at":"2025-04-11T19:32:39.811Z","avatar_url":"https://github.com/tmthrgd.png","language":"Go","readme":"# gomodpriv\n\n**gomodpriv** is a tool to automatically manage the `GOPRIVATE` environment\nvariable used by go1.13+.\n\n## Installation\n\nInstallation is simple and no different to any Go tool. The only requirement is\na working [Go](https://golang.org/) install.\n\n```\ngo get go.tmthrgd.dev/gomodpriv\n```\n\n## Usage\n\nThe GOPRIVATE environment variable is set to a list of all private repositories\nowned by the current GitHub user. It reads `go.mod` files in the root\ndirectory, to handle any custom import paths.\n\nThe environment variable is set for go commands with the `go env` command.\n\nWhen run for the first time you will be prompted for your GitHub username and\npassword. Your password is not stored, but instead used to request an Oauth2\ntoken.\n\nIf you want the list of private repositories to be refreshed periodically,\nensure **gomodpriv** is run at start-up or upon login. Otherwise it can be run\nmanually when creating new private repositories.\n\n## License\n\n[BSD 3-Clause License](LICENSE)\n\n## Note\n\n**gomodpriv** (mis)uses [github/hub](https://github.com/github/hub) to handle\nauthentication. If hub is already installed, you may not be prompted for your\nusername and password. To have this work with GitHub enterprise follow the\ninstructions found here:\n[hub.github.com/hub.1.html#github-enterprise](https://hub.github.com/hub.1.html#github-enterprise).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmthrgd%2Fgomodpriv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmthrgd%2Fgomodpriv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmthrgd%2Fgomodpriv/lists"}