Skip to content
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

Pin Ubuntu builds to ubuntu-18.04 (from ubuntu-latest) #3228

Closed
augustoproiete opened this issue Mar 3, 2021 · 1 comment · Fixed by #3229
Closed

Pin Ubuntu builds to ubuntu-18.04 (from ubuntu-latest) #3228

augustoproiete opened this issue Mar 3, 2021 · 1 comment · Fixed by #3229
Assignees
Labels
Milestone

Comments

@augustoproiete
Copy link
Member

Ubuntu builds started failing yesterday with what it seemed to be a GitVersion-related error:

----------------------------------------
Setup
----------------------------------------
Calculating Semantic Version
INFO [03/02/21 21:54:51:97] Working directory: /home/runner/work/cake/cake
INFO [03/02/21 21:54:51:97] IsDynamicGitRepository: False
ERROR [03/02/21 21:54:52:00] An unexpected error occurred:
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'git2-7ce88e6' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-7ce88e6: cannot open shared object file: No such file or directory
   at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
   at LibGit2Sharp.Core.NativeMethods..cctor()
   --- End of inner exception stack trace ---
   at LibGit2Sharp.Core.NativeMethods.git_buf_dispose(GitBuf buf)
   at LibGit2Sharp.Core.Proxy.git_buf_dispose(GitBuf buf)
   at LibGit2Sharp.Core.Handles.GitBuf.Dispose()
   at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
   at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
   at LibGit2Sharp.Repository.Discover(String startingPath)
   at GitVersion.GitPreparer.GetProjectRootDirectoryInternal() in D:\a\1\s\src\GitVersionCore\GitPreparer.cs:line 89
   at GitVersion.GitPreparer.GetProjectRootDirectory() in D:\a\1\s\src\GitVersionCore\GitPreparer.cs:line 27
   at GitVersion.Configuration.ConfigFileLocator.Verify(IGitPreparer gitPreparer) in D:\a\1\s\src\GitVersionCore\Configuration\ConfigFileLocator.cs:line 61
   at GitVersion.GitVersionExecutor.VerifyConfiguration() in D:\a\1\s\src\GitVersionExe\GitVersionExecutor.cs:line 153
   at GitVersion.GitVersionExecutor.VerifyArgumentsAndRun(Arguments arguments) in D:\a\1\s\src\GitVersionExe\Git

image

e.g. https://github.com/cake-build/cake/pull/3221/checks?check_run_id=2017169240


Troubleshooting by @gitfool:

Unrelated build failure on ubuntu-latest which looks to be because "latest" has finally switched to Ubuntu 20.04!

This is good news but need to be using the latest GitVersion for it to be compatible.

I see two options:

  • Use ubuntu-18.04 label to pin Ubuntu runner to 18.04
  • Fix ongoing issue with Bitrise builds using latest GitVersion (pref)
@augustoproiete augustoproiete added this to the v1.1.0 milestone Mar 3, 2021
@augustoproiete augustoproiete self-assigned this Mar 3, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 3, 2021
devlead added a commit that referenced this issue Mar 3, 2021
…o-ubuntu-18.04

GH-3228: Pin Ubuntu builds to ubuntu-18.04 (from ubuntu-latest)
@cake-build-bot
Copy link

🎉 This issue has been resolved in version v1.1.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants