-
Notifications
You must be signed in to change notification settings - Fork 63
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
[ISSUE]: unsupported extension name extensions.worktreeconfig #1090
Comments
can you please post the workflow code you have? |
I was already afraid you were gonna ask, but unfortunately I can't, because it's part of a huge reusable workflow which I can't publicly share, but the gitversion part are these two actions:
It worked before PR 1070 was merged where the shallow-check was introduced, maybe another version of git is being executed instead of the one in /usr/bin? |
please post your checkout step as well |
As you can see, in this case it's checking out other repos than the one where the workflow is running, pretty exotic scenario perhaps.. |
@pascalgulikers can you test the fix using uses: gittools/actions/gitversion/setup@main
uses: gittools/actions/gitversion/execute@main If that works for you I will create a hotfix release |
we're having the same problems also tried @main:
|
@olibanjoli I don't see why this does not work for you, as it's basically the same as https://github.com/GitTools/actions/blob/main/.github/workflows/example-8.yml I will add an input that will allow you to disable the check |
The hotfix seems to work:
|
Thank you for confirmation. Anyway I will add the possibility to disable the check, by default it will be checking for shallow clone |
@olibanjoli can you test with this change? - name: Version
id: gitversion
uses: gittools/actions/gitversion/execute@main
with:
targetPath: gv-repo
disableShallowCloneCheck: true and let me know if it works for you? |
Version 1.1.0 was released. Could you please confirm it fixes your issue? |
it does not work, still the same error:
|
can you post here the workflow (the part with the checkout, setup and execute)? |
name: test
on: [push, workflow_dispatch]
jobs:
build:
runs-on: self-hosted
env:
DOTNET_INSTALL_DIR: "/home/runner/dotnet"
strategy:
matrix:
service:
- foo
- bar
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@main
with:
versionSpec: 5.x
preferLatestVersion: true
- name: Version
id: gitversion
uses: gittools/actions/gitversion/execute@main
with:
disableShallowCloneCheck: true
useConfigFile: true |
The error is suddenly back:
Resulting in:
|
Prerequisites
GitVersion package
GitHub Actions
What are you seeing?
What is expected?
To continue instead of halt.
Steps to Reproduce
It worked until now, so it probably was introduced in a recent commit
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: