• 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.

      Hello currently we are developing Go and using Stash to hold our source code.
      Currently the 'go get' command doesn't work quite well with stash.

      if i do 'go get' i get the following:
      stash/organization/myproj.git/
      as the directoy structure
      currently there are some implementations that the .git won't get appended.

      > http://golang.org/cmd/go/#hdr-Remote_import_paths

      it would be great if this is possible at all.

            [BSERV-5380] Add support for go get

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3395903 ] New: JAC Suggestion Workflow 3 [ 3621687 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: BSERV Suggestions Workflow [ 2686190 ] New: JAC Suggestion Workflow [ 3395903 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 751520 ] New: BSERV Suggestions Workflow [ 2686190 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]

            Yes, thank you, the "/scm" is the issue. "go get" is working without it.

            Steve Hellwege added a comment - Yes, thank you, the "/scm" is the issue. "go get" is working without it.

            Stefan added a comment - - edited

            steve.hellwege1824777912 - when utilising go get via the meta tag provided by Bitbucket Server, you should not include /scm in your import path. I have edited my previous comment regarding the usage of go get in Bitbucket Server (formally Stash) to include this.

            For your example, the following import path should work:

            go get -insecure stash.wdmv.wdc.com/midy/otaclient/cloud
            

            Stefan added a comment - - edited steve.hellwege1824777912 - when utilising go get via the meta tag provided by Bitbucket Server, you should not include /scm in your import path. I have edited my previous comment regarding the usage of go get in Bitbucket Server (formally Stash) to include this. For your example, the following import path should work: go get -insecure stash.wdmv.wdc.com/midy/otaclient/cloud

            Steve Hellwege added a comment - - edited

            We are using bitbucket 4.1.0. It looks like this is still a problem. How can this be fixed/worked around? This is causing significant problems with our golang development.

            FAILING -->
            steveh@steveh-VirtualBox:/files/middleware-yocto/src/test$ go get -insecure stash.wdmv.wdc.com/scm/midy/otaclient/cloud
            package stash.wdmv.wdc.com/scm/midy/otaclient/cloud: /files/middleware-yocto/src/stash.wdmv.wdc.com/scm/midy exists but /files/middleware-yocto/src/stash.wdmv.wdc.com/scm/midy/.git does not - stale checkout?

            WORKING (if .git is added to repo) -->
            steveh@steveh-VirtualBox:/files/middleware-yocto/src/test$ go get -insecure stash.wdmv.wdc.com/scm/midy/otaclient.git/cloud

            Steve Hellwege added a comment - - edited We are using bitbucket 4.1.0. It looks like this is still a problem. How can this be fixed/worked around? This is causing significant problems with our golang development. FAILING --> steveh@steveh-VirtualBox:/files/middleware-yocto/src/test$ go get -insecure stash.wdmv.wdc.com/scm/midy/otaclient/cloud package stash.wdmv.wdc.com/scm/midy/otaclient/cloud: /files/middleware-yocto/src/stash.wdmv.wdc.com/scm/midy exists but /files/middleware-yocto/src/stash.wdmv.wdc.com/scm/midy/.git does not - stale checkout? WORKING (if .git is added to repo) --> steveh@steveh-VirtualBox:/files/middleware-yocto/src/test$ go get -insecure stash.wdmv.wdc.com/scm/midy/otaclient.git/cloud
            Roger Barnes (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 98304 ] New: This issue links to "Page (Extranet)" [ 98304 ]
            Roger Barnes (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 98304 ] New: This issue links to "Page (Extranet)" [ 98304 ]
            Roger Barnes (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 98304 ] New: This issue links to "Page (Extranet)" [ 98304 ]
            Roger Barnes (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 98304 ] New: This issue links to "Page (Extranet)" [ 98304 ]

              spetrucev Stefan
              b38832839cc0 ChristianS
              Votes:
              13 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: