{"id":19339729,"url":"https://github.com/rubenv/stash-go-import","last_synced_at":"2026-06-18T11:31:33.647Z","repository":{"id":33091600,"uuid":"36729070","full_name":"rubenv/stash-go-import","owner":"rubenv","description":"Go import path support for Atlassian Stash","archived":false,"fork":false,"pushed_at":"2016-10-24T08:09:45.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T08:27:01.884Z","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":"tootsuite/mastodon","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenv.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}},"created_at":"2015-06-02T11:39:34.000Z","updated_at":"2021-11-15T19:16:06.000Z","dependencies_parsed_at":"2022-07-24T17:47:13.513Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/stash-go-import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubenv/stash-go-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fstash-go-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fstash-go-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fstash-go-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fstash-go-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/stash-go-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fstash-go-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34489019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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-10T03:23:33.329Z","updated_at":"2026-06-18T11:31:33.504Z","avatar_url":"https://github.com/rubenv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stash-go-import\n\n\u003e Go [import path](http://golang.org/cmd/go/#hdr-Remote_import_paths) support\n\u003e for [Atlassian Stash](https://www.atlassian.com/software/stash)\n\nMakes it possible to use clean import paths such as\n`git.mycompany.com/proj/repo` instead of the ugly\n`git.mycompany.com:7999/proj/repo.git`.\n\n# Installation\n\n```\ngo get github.com/rubenv/stash-go-import\n```\n\n# Usage\n\n```\nUsage: stash-go-import\n\n  -port=80: listen on port\n  -sshPort=7999: use SSH port\n```\n\n# Docker image\n\nThere's a docker image available: [rubenv/stash-go-import](https://registry.hub.docker.com/u/rubenv/stash-go-import/).\n\nSimply run the image and you're good to go:\n\n```\ndocker run -d -p 7991:80 rubenv/stash-go-import\n```\n\nTo pass extra arguments:\n\n```\ndocker run -d -p 7991:80 rubenv/stash-go-import stash-go-import -sshPort 8001\n```\n\n# Configuring nginx\n\n```\nserver {\n    listen 443 ssl spdy;\n    server_name git.mycompany.com;\n\n    spdy_headers_comp 7;\n\n    gzip             on;\n    gzip_min_length  1000;\n    gzip_types       text/plain application/xml text/css application/javascript application/json application/x-javascript;\n    gzip_disable     \"MSIE [1-6]\\.\";\n\n    if ($args ~* \"^go-get=1\") {\n        set $condition goget;\n    }\n\n    location / {\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        if ($condition = goget) {\n            proxy_pass http://localhost:7991;\n        }\n        if ($condition != goget) {\n            proxy_pass http://localhost:7990;\n        }\n    }\n}\n```\n\nThis will send any call with `?go-get=1` to `stash-go-import`, any other call\ngoes to Stash. Adjust to match your local setup.\n\n## License\n\n    (The MIT License)\n\n    Copyright (C) 2015 by Ruben Vermeersch \u003cruben@rocketeer.be\u003e\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fstash-go-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fstash-go-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fstash-go-import/lists"}