Skip to content

git-artifacts: pipeline fails if existing_git_tag doesn't match the current version from mingw-packages #79

Closed
@dennisameling

Description

@dennisameling

I ran this pipeline with the following variables:

EXISTING_GIT_TAG: v2.45.1.windows.1
BUILD_EXTRA_REV_FOR_EXISTING_GIT_TAG: 595592cd549f3653a46ab228e4c808eb571c5318

It then failed with these lines:

+ cd /usr/src/MINGW-packages/mingw-w64-git
+ cp PKGBUILD.v2.45.1.windows.1 PKGBUILD
+ test -z v2.45.1.windows.1
+ git update-index --ignore-submodules --refresh
mingw-w64-git/PKGBUILD: needs update
+ echo '::warning::Uncommitted changes after build!'
Warning: Uncommitted changes after build!
+ git diff
diff --git a/mingw-w64-git/PKGBUILD b/mingw-w64-git/PKGBUILD
index efc1026..dbe53ba 100644
--- a/mingw-w64-git/PKGBUILD
+++ b/mingw-w64-git/PKGBUILD
@@ -7,8 +7,8 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
 	 "${MINGW_PACKAGE_PREFIX}-${_realname}-doc-html"
 	 "${MINGW_PACKAGE_PREFIX}-${_realname}-doc-man"
 	 "${MINGW_PACKAGE_PREFIX}-${_realname}-test-artifacts")
-tag=2.45.0.windows.1
-pkgver=2.45.0.1.b5d0511969
+tag=2.45.1.windows.1
+pkgver=2.45.1.1.965b16798d
 pkgrel=1
 pkgdesc="The fast distributed version control system (mingw-w64)"
 arch=('any')
+ git bundle create /d/a/_work/git-for-windows-automation/git-for-windows-automation/artifacts/MINGW-packages.bundle 'main^..main'
fatal: ambiguous argument 'main^..main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: Process completed with exit code 128.

I noticed that MINGW-packages is still on 2.45.0.windows.1, which partially explains where the error above comes from.

However, I'd expect the v2.45.1.windows.1 to build fine and not be dependent on the version that's currently in the MINGW-packages repo.

This workflow is quite complex and I'm not sure where to start looking in order to fix it. It does all kinds of fancy things like creating bundle_artifacts which is something I don't normally do in my daily Git workflows. If someone could give me some pointers, I'd be happy to update the workflow and test. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions