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

GCM 2.6 fails to install on macOS Sonoma 14.7 #1717

Open
javier-garcia-sonarsource opened this issue Oct 4, 2024 · 4 comments
Open

GCM 2.6 fails to install on macOS Sonoma 14.7 #1717

javier-garcia-sonarsource opened this issue Oct 4, 2024 · 4 comments
Assignees
Labels
bug A bug in Git Credential Manager installation Specific to installation and uninstallation platform:osx Specific to the macOS platform

Comments

@javier-garcia-sonarsource

GCM 2.6 installation fails using Homebrew command

brew install --cask git-credential-manager

Error message:

==> Downloading https://formulae.brew.sh/api/cask.jws.json
##################################################################################################################################################### 100.0%
==> Downloading https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-osx-arm64-2.6.0.pkg
Already downloaded: /Users/<username>/Library/Caches/Homebrew/downloads/4666f1223e9be016ab087da40f8fb50551654ddc553faeb68ca4635dd23021d3--gcm-osx-arm64-2.6.0.pkg
==> Installing Cask git-credential-manager
==> Running installer for git-credential-manager with sudo; the password may be necessary.
Password:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcm-osx-arm64-2.6.0.pkg”.)
==> Purging files for version 2.6.0 of Cask git-credential-manager
Error: Failure while executing; `/usr/bin/sudo -u root -E LOGNAME=<username> USER= <username> USERNAME= <username> -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/git-credential-manager/2.6.0/gcm-osx-arm64-2.6.0.pkg -target /` exited with 1. Here's the output:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcm-osx-arm64-2.6.0.pkg”.)
@mjcheetham
Copy link
Collaborator

Hmm.. I just tried this on macOS 14.7 (build 23H124) with GCM 2.6.0 and got a successful install.

mjcheetham@chronos ~ % brew install --cask git-credential-manager
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
==> Updated Homebrew from 3f11462c14 to 4671af4bb9.
No changes to formulae or casks.

==> Downloading https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-osx-arm64-2.6.0.pkg
Already downloaded: /Users/mjcheetham/Library/Caches/Homebrew/downloads/4666f1223e9be016ab087da40f8fb50551654ddc553faeb68ca4635dd23021d3--gcm-osx-arm64-2.6.0.pkg
==> Installing Cask git-credential-manager
==> Running installer for git-credential-manager with sudo; the password may be necessary.
Password:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install was successful.
🍺  git-credential-manager was successfully installed!

Did you have any previous versions of GCM installed prior to this? What happens if you forcibly uninstall any previous versions, or attempted/incomplete installs and then reinstall?

brew update
brew uninstall --cask --force git-credential-manager
brew install --cask git-credential-manager

@mjcheetham mjcheetham added bug A bug in Git Credential Manager platform:osx Specific to the macOS platform installation Specific to installation and uninstallation labels Oct 4, 2024
@javier-garcia-sonarsource
Copy link
Author

Hi, and thanks for the quick response.
Yes, I'm sure there wasn't any previous version installed. Anyway, I executed your suggested commands and it is still failing:

➜  ~ brew update
brew uninstall --cask --force git-credential-manager
==> Updating Homebrew...
Updated 1 tap (homebrew/core).
==> Outdated Formulae
[email protected]                                                                         xz

You have 2 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
==> Uninstalling Cask git-credential-manager
==> Running uninstall script /usr/local/share/gcm-core/uninstall.sh
Warning: uninstall script /usr/local/share/gcm-core/uninstall.sh does not exist; skipping.
==> Uninstalling packages with sudo; the password may be necessary:
==> Purging files for version 2.6.0 of Cask git-credential-manager
➜  ~ brew install --cask git-credential-manager
==> Downloading https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-osx-arm64-2.6.0.pkg
Already downloaded: /Users/<user>/Library/Caches/Homebrew/downloads/4666f1223e9be016ab087da40f8fb50551654ddc553faeb68ca4635dd23021d3--gcm-osx-arm64-2.6.0.pkg
==> Installing Cask git-credential-manager
==> Running installer for git-credential-manager with sudo; the password may be necessary.
Password:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcm-osx-arm64-2.6.0.pkg”.)
==> Purging files for version 2.6.0 of Cask git-credential-manager
Error: Failure while executing; `/usr/bin/sudo -u root -E LOGNAME=<user> USER=<user> USERNAME=<user> -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/git-credential-manager/2.6.0/gcm-osx-arm64-2.6.0.pkg -target /` exited with 1. Here's the output:
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcm-osx-arm64-2.6.0.pkg”.)

@mjcheetham
Copy link
Collaborator

Can you also try running the following commands and reporting back with the output please?

ls /usr/local/share/gcm-core
ls -l /usr/local/bin | grep git-credential-manager

Have you also tried installing via the pkg file rather than via Homebrew? Do you have the same issue (installation failing)?

https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-osx-arm64-2.6.0.pkg

@mjcheetham mjcheetham self-assigned this Oct 4, 2024
@javier-garcia-sonarsource
Copy link
Author

Hi @mjcheetham.

➜  ~ sudo ls /usr/local/share/gcm-core
Password:
Atlassian.Bitbucket.dll					System.IO.FileSystem.Watcher.dll			System.Security.Principal.Windows.dll
Avalonia.Base.dll					System.IO.FileSystem.dll				System.Security.Principal.dll
Avalonia.Controls.dll					System.IO.IsolatedStorage.dll				System.Security.SecureString.dll
Avalonia.DesignerSupport.dll				System.IO.MemoryMappedFiles.dll				System.Security.dll
Avalonia.Desktop.dll					System.IO.Pipelines.dll					System.ServiceModel.Web.dll
Avalonia.Dialogs.dll					System.IO.Pipes.AccessControl.dll			System.ServiceProcess.dll
Avalonia.FreeDesktop.dll				System.IO.Pipes.dll					System.Text.Encoding.CodePages.dll
Avalonia.Markup.Xaml.dll				System.IO.UnmanagedMemoryStream.dll			System.Text.Encoding.Extensions.dll
Avalonia.Markup.dll					System.IO.dll						System.Text.Encoding.dll
Avalonia.Metal.dll					System.Linq.Expressions.dll				System.Text.Encodings.Web.dll
Avalonia.MicroCom.dll					System.Linq.Parallel.dll				System.Text.Json.dll
Avalonia.Native.dll					System.Linq.Queryable.dll				System.Text.RegularExpressions.dll
Avalonia.OpenGL.dll					System.Linq.dll						System.Threading.Channels.dll
Avalonia.Remote.Protocol.dll				System.Memory.dll					System.Threading.Overlapped.dll
Avalonia.Skia.dll					System.Net.Http.Json.dll				System.Threading.Tasks.Dataflow.dll
Avalonia.Themes.Fluent.dll				System.Net.Http.dll					System.Threading.Tasks.Extensions.dll
Avalonia.Vulkan.dll					System.Net.HttpListener.dll				System.Threading.Tasks.Parallel.dll
Avalonia.Win32.dll					System.Net.Mail.dll					System.Threading.Tasks.dll
Avalonia.X11.dll					System.Net.NameResolution.dll				System.Threading.Thread.dll
Avalonia.dll						System.Net.NetworkInformation.dll			System.Threading.ThreadPool.dll
GitHub.dll						System.Net.Ping.dll					System.Threading.Timer.dll
GitLab.dll						System.Net.Primitives.dll				System.Threading.dll
HarfBuzzSharp.dll					System.Net.Quic.dll					System.Transactions.Local.dll
MicroCom.Runtime.dll					System.Net.Requests.dll					System.Transactions.dll
Microsoft.AzureRepos.dll				System.Net.Security.dll					System.ValueTuple.dll
Microsoft.CSharp.dll					System.Net.ServicePoint.dll				System.Web.HttpUtility.dll
Microsoft.Identity.Client.Extensions.Msal.dll		System.Net.Sockets.dll					System.Web.dll
Microsoft.Identity.Client.dll				System.Net.WebClient.dll				System.Windows.dll
Microsoft.IdentityModel.Abstractions.dll		System.Net.WebHeaderCollection.dll			System.Xml.Linq.dll
Microsoft.VisualBasic.Core.dll				System.Net.WebProxy.dll					System.Xml.ReaderWriter.dll
Microsoft.VisualBasic.dll				System.Net.WebSockets.Client.dll			System.Xml.Serialization.dll
Microsoft.Win32.Primitives.dll				System.Net.WebSockets.dll				System.Xml.XDocument.dll
Microsoft.Win32.Registry.dll				System.Net.dll						System.Xml.XPath.XDocument.dll
NOTICE							System.Numerics.Vectors.dll				System.Xml.XPath.dll
SkiaSharp.dll						System.Numerics.dll					System.Xml.XmlDocument.dll
System.AppContext.dll					System.ObjectModel.dll					System.Xml.XmlSerializer.dll
System.Buffers.dll					System.Private.CoreLib.dll				System.Xml.dll
System.Collections.Concurrent.dll			System.Private.DataContractSerialization.dll		System.dll
System.Collections.Immutable.dll			System.Private.Uri.dll					Tmds.DBus.Protocol.dll
System.Collections.NonGeneric.dll			System.Private.Xml.Linq.dll				WindowsBase.dll
System.Collections.Specialized.dll			System.Private.Xml.dll					createdump
System.Collections.dll					System.Reflection.DispatchProxy.dll			cs
System.CommandLine.dll					System.Reflection.Emit.ILGeneration.dll			de
System.ComponentModel.Annotations.dll			System.Reflection.Emit.Lightweight.dll			es
System.ComponentModel.DataAnnotations.dll		System.Reflection.Emit.dll				fr
System.ComponentModel.EventBasedAsync.dll		System.Reflection.Extensions.dll			gcmcore.dll
System.ComponentModel.Primitives.dll			System.Reflection.Metadata.dll				git-credential-manager
System.ComponentModel.TypeConverter.dll			System.Reflection.Primitives.dll			git-credential-manager.deps.json
System.ComponentModel.dll				System.Reflection.TypeExtensions.dll			git-credential-manager.dll
System.Configuration.dll				System.Reflection.dll					git-credential-manager.runtimeconfig.json
System.Console.dll					System.Resources.Reader.dll				it
System.Core.dll						System.Resources.ResourceManager.dll			ja
System.Data.Common.dll					System.Resources.Writer.dll				ko
System.Data.DataSetExtensions.dll			System.Runtime.CompilerServices.Unsafe.dll		libAvaloniaNative.dylib
System.Data.dll						System.Runtime.CompilerServices.VisualC.dll		libHarfBuzzSharp.dylib
System.Diagnostics.Contracts.dll			System.Runtime.Extensions.dll				libSkiaSharp.dylib
System.Diagnostics.Debug.dll				System.Runtime.Handles.dll				libSystem.Globalization.Native.dylib
System.Diagnostics.DiagnosticSource.dll			System.Runtime.InteropServices.JavaScript.dll		libSystem.IO.Compression.Native.dylib
System.Diagnostics.FileVersionInfo.dll			System.Runtime.InteropServices.RuntimeInformation.dll	libSystem.Native.dylib
System.Diagnostics.Process.dll				System.Runtime.InteropServices.dll			libSystem.Net.Security.Native.dylib
System.Diagnostics.StackTrace.dll			System.Runtime.Intrinsics.dll				libSystem.Security.Cryptography.Native.Apple.dylib
System.Diagnostics.TextWriterTraceListener.dll		System.Runtime.Loader.dll				libSystem.Security.Cryptography.Native.OpenSsl.dylib
System.Diagnostics.Tools.dll				System.Runtime.Numerics.dll				libclrgc.dylib
System.Diagnostics.TraceSource.dll			System.Runtime.Serialization.Formatters.dll		libclrjit.dylib
System.Diagnostics.Tracing.dll				System.Runtime.Serialization.Json.dll			libcoreclr.dylib
System.Drawing.Primitives.dll				System.Runtime.Serialization.Primitives.dll		libhostfxr.dylib
System.Drawing.dll					System.Runtime.Serialization.Xml.dll			libhostpolicy.dylib
System.Dynamic.Runtime.dll				System.Runtime.Serialization.dll			libmscordaccore.dylib
System.Formats.Asn1.dll					System.Runtime.dll					libmscordbi.dylib
System.Formats.Tar.dll					System.Security.AccessControl.dll			mscorlib.dll
System.Globalization.Calendars.dll			System.Security.Claims.dll				netstandard.dll
System.Globalization.Extensions.dll			System.Security.Cryptography.Algorithms.dll		pl
System.Globalization.dll				System.Security.Cryptography.Cng.dll			pt-BR
System.IO.Compression.Brotli.dll			System.Security.Cryptography.Csp.dll			ru
System.IO.Compression.FileSystem.dll			System.Security.Cryptography.Encoding.dll		tr
System.IO.Compression.ZipFile.dll			System.Security.Cryptography.OpenSsl.dll		uninstall.sh
System.IO.Compression.dll				System.Security.Cryptography.Primitives.dll		zh-Hans
System.IO.FileSystem.AccessControl.dll			System.Security.Cryptography.ProtectedData.dll		zh-Hant
System.IO.FileSystem.DriveInfo.dll			System.Security.Cryptography.X509Certificates.dll
System.IO.FileSystem.Primitives.dll			System.Security.Cryptography.dll
➜  ~ ls -l /usr/local/bin | grep git-credential-manager
lrwxr-xr-x  1 root  wheel  48 Oct  4 13:24 git-credential-manager -> /usr/local/share/gcm-core/git-credential-manager

Have you also tried installing via the pkg file rather than via Homebrew? Do you have the same issue (installation failing)?

Yes, same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in Git Credential Manager installation Specific to installation and uninstallation platform:osx Specific to the macOS platform
Projects
None yet
Development

No branches or pull requests

2 participants