{"id":18498909,"url":"https://github.com/instance-id/goclone","last_synced_at":"2025-08-10T04:10:56.275Z","repository":{"id":98392415,"uuid":"197828326","full_name":"instance-id/goclone","owner":"instance-id","description":"Simple tool for cloning a git repository to the appropriate location in your $GOPATH","archived":false,"fork":false,"pushed_at":"2019-07-27T01:59:35.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-27T05:07:29.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/instance-id.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-19T19:05:39.000Z","updated_at":"2020-08-14T06:15:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9389202e-9eff-4ef9-a12d-f1a7872bdc5a","html_url":"https://github.com/instance-id/goclone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/instance-id/goclone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-id%2Fgoclone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-id%2Fgoclone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-id%2Fgoclone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-id%2Fgoclone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instance-id","download_url":"https://codeload.github.com/instance-id/goclone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-id%2Fgoclone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269673996,"owners_count":24457246,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T13:42:58.705Z","updated_at":"2025-08-10T04:10:56.246Z","avatar_url":"https://github.com/instance-id.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goclone\n\nA simple tool I made to making cloning repos to the appropriate place in the $GOPATH in the event it is not something you can or want to use \"go get\".\n\nMy primary reason for this was I was downloading a lot of go-flutter examples and each time I would have to go into $GOPATH/src/github.com/ and then create a folder for the creators user name, then clone to it manually each time. This tool parses the url for the username, creates the directory, then clones to it.\nIf you build it, you can just rename it goclone or whatever you would like then place it in /usr/local/bin/\n\nThe -f flag signifies which folder you want as the root. \n\n```-f go``` will make the root $GOPATH  \n```-f git``` will use a new ENV variable I created $GITPATH which I pointed to a folder I use for non Go related repos, but I don't have that one parse the username, it just auto clones to the $GITPATH folder \n\nExample usage: ```$ goclone -f go -u https://github.com/instance-id/goclone.git``` is the equivalent of ```mkdir $GOPATH/src/github.com/username \u0026\u0026 cd $GOPATH/src/github.com/username \u0026\u0026 git clone https://github.com/username/repo.git```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-id%2Fgoclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstance-id%2Fgoclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-id%2Fgoclone/lists"}