From e7bf4f2475713089d6c7cd614e2402cc9d89ca29 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 1 Aug 2025 16:02:14 +0300 Subject: [PATCH] ci: make sure to always compare with the latest commit on the main V repo's master branch, when running .github/workflows/compare_pr_to_master.v --- .github/workflows/compare_pr_to_master.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compare_pr_to_master.v b/.github/workflows/compare_pr_to_master.v index 71db5f71e8..bf9e4fed1d 100755 --- a/.github/workflows/compare_pr_to_master.v +++ b/.github/workflows/compare_pr_to_master.v @@ -94,7 +94,12 @@ fn main() { } r('rm -rf vnew1 vnew2') - r('git checkout master') + // make sure to always compare against the main V repo's master branch: + os.execute('git -C . remote add V_REPO https://github.com/vlang/v.git') + os.execute('git -C . fetch V_REPO') + os.execute('git branch -D v_repo_master') + os.execute('git branch -f --track v_repo_master V_REPO/master') + r('git checkout v_repo_master') master_branch := gbranch() hline(' Compiling old V executables from branch: ${master_branch}, commit: ${gcommit()} ...') xtime('./v -o vold1 cmd/v')