digitalocean / digitalocean/doctl

Errors when using Git for Windows

Open
#733 20 comments 0 reactions 1 assignee Claimed by @bentranter View on GitHub
bug Needs Investigation
Dominant language
Go
Stars
3.4k
Forks
496
Avg merge
1d 2h
Merged PRs (30d)
31

Description

**Doctl says unknown terminal, when trying `doctl auth init`:**
So, I have been using doctl on Windows via the [Git Bash](https://git-scm.com/) utility, powershell isn't my thing. I download the doctl.exe to bin directory in my home folder. And invoke it using git bash CLI.

This used to work just fine till 1.36 but upon trying `doctl auth init` on a fresh Windows 10 install I am getting this error:
```
Ranvir@WestWind MINGW64 /
$ doctl auth init
Error: unable to read DigitalOcean access token: unknown terminal
```
This is easily circumvented using PowerShell, but with Git Bash the error is very annoying. Since this wasn't an issue in previous releases, but is an issue now, I thought I will share it with everyone.

Hopefully, we aren't relying on Windows' underlying brokeness.

**Environment:**
OS: Windows 10, 1909 up-to-date
Arch: x86_64
doctl version 1.37.0-release (downloaded from GitHub releases page)

**Additional Details:**
Using the --trace flag doesn't print anything extra than what is mentioned above.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.