lib/omnibus/build_version.rb
def git_describe
      @git_describe ||= begin
        cmd = shellout("git describe --tags", cwd: @path)

        if cmd.exitstatus == 0
          cmd.stdout.chomp
        else
          log.warn(log_key) do
            "Could not extract version information from 'git describe'! " \
            "Setting version to 0.0.0."
          end
          "0.0.0"
        end
      end
    end
def git_describe
      @git_describe ||= begin
        cmd = shellout("git describe --tags", cwd: @path)

        if cmd.exitstatus == 0
          cmd.stdout.chomp
        else
          log.warn(log_key) do
            "Could not extract version information from 'git describe'! " \
            "Setting version to 0.0.0."
          end
          "0.0.0"
        end
      end
    end
Generates a version string by running
 {https://www.kernel.org/pub/software/scm/git/docs/git-describe.html
 git describe} in the root of the Omnibus project.

 Produces a version string of the format

     MOST_RECENT_TAG-COMMITS_SINCE-gGIT_SHA

 @example
  11.0.0-alpha.1-207-g694b062
 @return [String]