build-tools: latest git in debian bullseye causes docker build errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Davlet Panech |
Bug Description
Brief Description
-----------------
Debian bullseye recently released an update to the "git" package that in some circumstances doesn't work correctly with repositories created by the "repo" tool. The problematic version is 1:2.30.2-1+deb11u2 .
The docker image build system triggers this bug under some circumstances -- for docker images that attempt to create a mirror of an existing local git repository by setting thew following in the *.docker_image build recipe:
PROJECT_
MIRROR_LOCAL=yes
Severity
--------
Major
Steps to Reproduce
------------------
1) Enter the "builder" container and upgrade git to latest:
% apt-get update
% apt-get upgrade git
2) Try to clone a local directory:
% git clone $MY_REPO
Expected Behavior
------------------
Git clone succeeds
Actual Behavior
----------------
Git clone fails with a message similar to:
fatal: destination path '/home/
Reproducibility
---------------
Reproducible
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
master/2023-03-07
Last Pass
---------
master/2023-03-03
Timestamp/Logs
--------------
N/A
Test Activity
-------------
N/A
Workaround
----------
Downgrade git:
sudo apt-get install git=1:2.30.2-1
CVE References
summary: |
- build-tools: latest git broken in debian bullseye + build-tools: latest git in debian bullseye causes docker build errors |
Changed in starlingx: | |
importance: | Undecided → High |
assignee: | nobody → Davlet Panech (dpanech) |
tags: | added: stx.9.0 stx.build |
Fix proposed to branch: master /review. opendev. org/c/starlingx /root/+ /876884
Review: https:/