Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5019

Multiple import same namespace for go included files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0, 0.13.0
    • 0.14.0
    • Go - Compiler
    • None

    Description

      When I include two files with same namespace for go language:

      include "common/Exceptions.thrift"
      include "common/Typedefs.thrift"

      And generate it for golang in result in import I have import of this namespace twice:

      import(
         "bytes"
         "context"
         "reflect"
         "fmt"
         "github.com/apache/thrift/lib/go/thrift"
         "my_namespace"
         "my_namespace"
      )
      

      And when I try to use I have an error because of this:
      "'my_namespace' redeclared as imported package name"

      Attachments

        Issue Links

          Activity

            People

              dcelasun Duru Can Celasun
              AndreyPetko Andrey Petko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m