Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-7400

Add sub-package support for go get

    XMLWordPrintable

Details

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Currently, it is not possible to go get a sub-package, i.e. go get <stash>/<project>/<repo>/<sub>/<directory>.

      Changes required:

      1. loosen the URL requirement for the import path (from <stash>/<project>/<repo> to <stash>/<project>/<repo>(/<directory>)*
      2. assume everything after <repo> is a sub-directory path
      3. return the same meta tag that would get returned for just go get <stash>/<project>/<repo>

      What go get will do is hit the http://<stash>/<project>/<repo>/<sub>/<directory> page looking for the go-import meta-tag, find a tag with a import prefix for the whole repository, hit the prefixed page http://<stash>/<project>/<repo>, find the original meta-tag, check out the repository, and install the requested package.

      Attachments

        Activity

          People

            spetrucev Stefan
            spetrucev Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: