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

require statements should reference from current directory

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Ruby - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Currently, require statements just use require 'some_constants' or 'some_types'. When you move the generated code into part of another project that is below the top-level directory the requires are no longer valid.

      I've patched the code to instead use the require as:

      File.join(File.dirname(_FILE_), 'some_constants'))

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pingles Paul Ingles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: