Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git version problem with Ubuntu 18.04

See original GitHub issue


Because the images use ubuntu:18.04, the git version is 2.17.1, checkout@v3 throws this warning message:

The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH

This causes some problems with committing inside the self-hosted runner, meaning you will get an error like this when you try to commit:

fatal: not a git repository (or any of the parent directories): .git

I don’t know if there’s a specific reason we use 18.04 but is it possible to bump the ubuntu version to 20.04 since it is LTS as well?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

kichikcommented, Jun 21, 2022

Turns out ubuntu-latest is actually ubuntu-20.04, specifying just linux hangs, and all Ubuntu versions contain the latest git 2.36.1. I’ll open a PR to update to latest git on all images.

sercantorcommented, Jun 21, 2022

great to hear, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install gitversion on Ubuntu 18.04.4?
The GitVersion doc on installation is somewhat blur for linux distros. Well, answering your question above i think I figured it out.
Read more >
2 Ways to Install Git on Ubuntu 18.04, 20.04 and 22.04
The easiest way to check if Git is installed is to run the git –version command, which will display the current version of...
Read more >
How To Install Git on Ubuntu 18.04 - DigitalOcean
Installing Git with Default Packages​​ First, use the apt package management tools to update your local package index: sudo apt update.
Read more >
GitVersion not working in Ubuntu 20.04 · Issue #2293 - GitHub
Description When the ubuntu-latest VM image switched to 20.04 we started getting the following error from GitVersion: System.
Read more >
USN-5376-1: Git vulnerability | Ubuntu security notices
USN-5376-1 : Git vulnerability. 12 April 2022. Git could be made to run arbitrary commands in platforms with multiple users support.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found