Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent update breaks GitVersion #1690

Closed
chadgrant opened this issue Apr 22, 2024 · 3 comments
Closed

Recent update breaks GitVersion #1690

chadgrant opened this issue Apr 22, 2024 · 3 comments

Comments

@chadgrant
Copy link

chadgrant commented Apr 22, 2024

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
@jww3
Copy link
Contributor

jww3 commented Apr 23, 2024

Workaround: pin workflows to actions/checkout@v4.1.1

Proposed fix: #1692

@jww3
Copy link
Contributor

jww3 commented Apr 24, 2024

We have created release v4.1.4 and marked it as pre-release. Absent any other issues, we plan to promote v4.1.4 to v4 and latest by end-of-week.

@jww3
Copy link
Contributor

jww3 commented Apr 25, 2024

v4 and latest now point to release v4.1.4

@jww3 jww3 closed this as completed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants