Support repos for golang by providing a URL alias service on top of VSTS
Because of underscores in the git repo URLs, VSTS repos can't be used for golang source packages. Full issue and potential solution in the following post.
https://ppanyukov.github.io/2017/02/01/golang-with-vsts-repos.html
Solution would be to enable an alias URL that could be used in go files.
3 comments
-
Andrew
commented
Please let my go code be beautiful, something like:
import "dev.azure.com/myorg/myproj/myrepo/mypackage", no _git or .git please! -
Mark Wakefield
commented
Probably worth also linking to https://visualstudio.uservoice.com/forums/330519-azure-devops-formerly-visual-studio-team-services/suggestions/20364613-add-golang-support-to-vsts-git which list related issues with repo URLs and Go.
-
Mark Wakefield
commented
If Azure DevOps could automatically provide these "vanity" urls with the correct meta tag (see https://golang.org/cmd/go/#hdr-Remote_import_paths) then this would be a great help as with Go 1.11 we are trying move to versioned modules and remove Glide from our system, but we're hitting the old issue of having the _git in the URL paths, even with the new format Azure DevOps URLs.