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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.20, 3.4.15, 3.5.6
    • Component/s: Build
    • Labels:

      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

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: