can't use debian backports to install newer git on jessie (debian 8)

This commit is contained in:
Andrei Neculau 2021-01-06 11:27:52 +01:00
parent 91656abda7
commit 4f9c52b1e0
No known key found for this signature in database
GPG Key ID: 79FA7EE650BF9A61

View File

@ -51,18 +51,14 @@ jobs:
- shell: bash - shell: bash
run: | run: |
# upgrade git to 2.18+ for actions/checkout@v2 # upgrade git to 2.18+ for actions/checkout@v2
# NOTE can't use backports; see git history
set -euo pipefail set -euo pipefail
set -x set -x
# some erlang containers are based on jesse, some or stretch, etc echo "deb http://ftp.debian.org/debian/ stable main contrib non-free" >>/etc/apt/sources.list
# NOTE jesse has no VERSION_CODENAME in /etc/os-release
# NOTE lsb_release is not installed
# see https://unix.stackexchange.com/questions/180776/how-to-get-debian-codename-without-lsb-release
VERSION_CODENAME=$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')
VCB=${VERSION_CODENAME}-backports
echo "deb http://cloudfront.debian.net/debian ${VCB} main" >>/etc/apt/sources.list.d/${VCB}.list
echo "deb-src http://cloudfront.debian.net/debian ${VCB} main" >>/etc/apt/sources.list.d/${VCB}.list
apt-get update -y --fix-missing -o Acquire::Check-Valid-Until=false apt-get update -y --fix-missing -o Acquire::Check-Valid-Until=false
apt-get -t ${VCB} install -y git # libc6-dev : Breaks: binutils (< 2.26) but 2.25-5+deb8u1 is to be installed
apt-get remove -y --force-yes binutils
apt-get install -y --force-yes git
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- shell: bash - shell: bash
run: | run: |