The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
uninstall the custom migration yaml merge driver (#66910)
bryand6149a57c474
diff --git a/.gitattributes b/.gitattributesindex c8dd1874eeb..12af2ed8b66 100644--- a/.gitattributes+++ b/.gitattributes@@ -2,4 +2,6 @@# Treats each changeset as an atomic unit to avoid conflicts within changesets# Execute this in your shell to enable custom merge driver:# echo '\n[include]\npath=../.gitconfig' >> .git/config-resources/migrations/*.yaml merge=yaml-migrations+#+# TODO (Bryan 12/12/25) -- reenable this when we can completely verify correctness+# resources/migrations/*.yaml merge=yaml-migrationsdiff --git a/.gitconfig b/.gitconfigindex 6feb99900d6..71a856daffc 100644--- a/.gitconfig+++ b/.gitconfig@@ -1,5 +1,7 @@# execute this in your shell to enable custom merge driver:# echo '\n[include]\npath=../.gitconfig' >> .git/config-[merge "yaml-migrations"]- name = YAML migration changeset-aware merge- driver = mage -merge-yaml-migrations %O %A %B %L %P+#+# TODO (Bryan 12/12/25) -- reenable this when we can completely verify correctness+# [merge "yaml-migrations"]+# name = YAML migration changeset-aware merge+# driver = mage -merge-yaml-migrations %O %A %B %L %Pdiff --git a/bb.edn b/bb.ednindex a09002cc215..0c6a6ffc6d1 100644--- a/bb.edn+++ b/bb.edn@@ -285,6 +285,21 @@(when-not (str/includes? (slurp git-config-file) the-include)(spit git-config-file the-include :append true))))}+ ;; opposite of -install-merge-drivers, removes the include while it's causing issues.+ -uninstall-merge-drivers+ {:doc "Uninstalls custom git merge drivers for YAML migration files."+ :requires [[clojure.string :as str]+ [mage.util :as u]]+ :task (task!+ (let [git-config-file (str u/project-root-directory "/.git/config")+ the-include (str "\n"+ "[include]\n"+ " path=../.gitconfig\n")]+ (when (str/includes? (slurp git-config-file) the-include)+ (let [includeless (-> (slurp git-config-file)+ (str/replace the-include ""))]+ (spit git-config-file includeless)))))}+-merge-yaml-migrations{:doc "Custom git merge driver for YAML migration files.":usage-fn (fn [_]diff --git a/lint-staged.config.cjs b/lint-staged.config.cjsindex 4988678df6f..19c1b3da60f 100644--- a/lint-staged.config.cjs+++ b/lint-staged.config.cjs@@ -33,6 +33,7 @@ module.exports = {*/(files) =>`./bin/mage -token-scan ${files.map((item) => `"${item}"`).join(" ")}`,- "./bin/mage -install-merge-drivers",+ // TODO (Bryan 12/12/25) -- reenable this when we can completely verify correctness+ "./bin/mage -uninstall-merge-drivers",],};