[gnome-builder/gnome-builder-41] build: include more commit information in logs and about



commit 3f1103ada3e9eebab5e450788e6f84382078d7a2
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 30 13:06:16 2021 -0700

    build: include more commit information in logs and about

 src/libide/core/meson.build | 1 +
 src/main.c                  | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/core/meson.build b/src/libide/core/meson.build
index d4ebbf1a8..48299428d 100644
--- a/src/libide/core/meson.build
+++ b/src/libide/core/meson.build
@@ -23,6 +23,7 @@ libide_core_version_h = configure_file(
 libide_core_generated_headers = [libide_core_version_h]
 
 libide_build_ident_h = vcs_tag(
+      command: ['git', 'describe'],
      fallback: meson.project_version(),
         input: 'ide-build-ident.h.in',
        output: 'ide-build-ident.h',
diff --git a/src/main.c b/src/main.c
index 072acb6a1..e220cfbeb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -39,6 +39,7 @@
 #include <unistd.h>
 
 #include "ide-application-private.h"
+#include "ide-build-ident.h"
 #include "ide-thread-private.h"
 #include "ide-terminal-private.h"
 #include "ide-private.h"
@@ -250,8 +251,8 @@ main (gint   argc,
   early_params_check (&argc, &argv, &standalone, &type, &plugin, &dbus_address);
 
   /* Log some info so it shows up in logs */
-  g_message ("GNOME Builder %s starting with ABI %s",
-             PACKAGE_VERSION, PACKAGE_ABI_S);
+  g_message ("GNOME Builder %s (%s) from channel \"%s\" starting with ABI %s",
+             PACKAGE_VERSION, IDE_BUILD_IDENTIFIER, IDE_BUILD_CHANNEL, PACKAGE_ABI_S);
 
   /* Make sure $HOME is not a symlink, as that can cause issues with
    * various subsystems. Just warn super loud so that users find it


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]