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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.20, 3.4.15, 3.5.6
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • v3.4, v3.2
    • Platforms 2017-04-17

      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-"
        

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

              Created:
              Updated:
              Resolved: