glab failed to read configuration: open C:\Users<USER>\AppData\Local\glab-cli\config.yml: The system cannot find the path specified.

Checklist

  • I'm using the latest version of the extension (Run glab --version) **I can't run glab --version, but i used the latest Windows installer (v1.77.0) from the releases page
  • Operating system and version: Windows 11 Pro Version 10.0.26100 Build 26100
  • Gitlab.com or self-managed instance? both
  • GitLab version (if self-managed) GitLab version here (Use the version endpoint, like this: gitlab.my-company.com/api/v4/version) 18.4.3-ee
  • I have performed glab auth status to check for authentication issues N/A
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output N/A

Summary

After installing gitlab using the windows installer, it complains about unable to access the .yml config file.

Separately, note the installer isn't adding the utility to PATH.

Environment

  • OS: Windows 11 - AMD64
  • SHELL: Powershell
  • TERM: N/A
  • GLAB: (not able to run --version) v1.77.0

Other:

Steps to reproduce

  1. Download and run the Windows installer glab_1.77.0_Windows_x86_64_installer.exe from https://gitlab.com/gitlab-org/cli/-/releases/v1.77.0
  2. cd C:\Program Files (x86)\glab (Note: separate bug the installer doesn't add glab to the PATH)
  3. Run any command - none work, with the same error failed to read configuration: open C:\Users\<USER>\AppData\Local\glab-cli\config.yml: The system cannot find the path specified.

What is the current bug behavior?

> ./glab --version
failed to read configuration:  open C:\Users\<USER>\AppData\Local\glab-cli\config.yml: The system cannot find the path specified.

What is the expected correct behavior?

Command should work

Relevant logs and/or screenshots

As above

Possible fixes

Temporary workaround: manually create the folder C:\Users\<USER>\AppData\Local\glab-cli

Edited by Roberto Fernandez Bautista