microsoft / microsoft/azure-linux-dev-tools

[Bug]: azldev does not function in ADO pipelines natively due to git mis-configuration

Open
#241 0 comments 0 reactions 1 assignee Claimed by @Tonisal-byte View on GitHub
bug
Dominant language
Go
Stars
18
Forks
27
Avg merge
4d 33m
Merged PRs (30d)
24

Description

**Bug Description**
ADO pipelines mis-configure the cloned git repo (set `worktreeconfig` with `core.repositoryformatversion=0`)

**Reproduction Steps**
Steps to reproduce the behavior:

Run `azldev comp build` in an ADO pipeline against the 4.0 distro branch.

**Expected behavior**
Should run build successfully.

**Actual behavior**
00:02:04 ERR Error: opening project repository:
core.repositoryformatversion does not support extension: worktreeconfig

**Additional context**
Technically this could be considered a mis-configuration in the cloned repo, but CLI git accepts it. There is a bug in `go-git` v5 which means it does not accept the same config. `v6` fixes it, but is still in beta.

We should upgrade once its stable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.