Skip to content

Recent update breaks GitVersion #1690

@chadgrant

Description

@chadgrant

Previous config:

    - name: Checkout
       uses: actions/checkout@v4
       with:
         fetch-depth: 0
         ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

     - name: Install GitVersion
       uses: gittools/actions/gitversion/setup@v0
       with:
         versionSpec: "5.x"

     - name: Determine Version
       id: gitversion
       uses: gittools/actions/gitversion/execute@v0
       with:
         useConfigFile: true

Gitversion now errors with "unsupported extension name extensions.worktreeconfig"

I was able to fix it with:

        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

      - name: fix git
        run: |
          git config --unset-all extensions.worktreeconfig || true
          git config --global --list

      - name: Install GitVersion
        uses: gittools/actions/gitversion/setup@v0
        with:
          versionSpec: "5.x"

      - name: Determine Version
        id: gitversion
        uses: gittools/actions/gitversion/execute@v0
        with:
          useConfigFile: true

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