Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21317

Better fallback for builds with no version.json and no git repo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.2.20, 3.4.15, 3.5.6
    • Build
    • Fully Compatible
    • v3.4, v3.2
    • Platforms 2017-04-17

    Description

      In SConstruct:479 we try to extract version information using "git describe" when version.json is not present in the repo (which is the new default, see SERVER-21224).

      Since there may be users building without a git repo it would be nice to add another fallback, such as environment variable or some other mechanism.

      Workarounds include:

      • adding a fake version.json file before compiling that looks as follows:

        {
            "version": "0.0.1-fake-"
        }

      • Setting MONGO_VERSION in ~/.scons/site_scons/mongo_custom_variables.py:

        MONGO_VERSION="0.0.1-fake-"
        

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow (Inactive)
              ramon.fernandez@mongodb.com Ramon Fernandez Marina
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: