Skip to content

fatal: could not read Username for 'https://github.com': terminal prompts disabled #2588

@onknows

Description

@onknows

Environment

  • Hugo version you are using (output of hugo version):
hugo v0.146.0-5d1b9d39858bb0b2e505af9f649bfb55295ecca1+extended linux/amd64 BuildDate=2025-04-10T14:57:56Z VendorInfo=gohugoio
  • Docsy version you are using:
module github.com/google/docsy-example

go 1.12

require (
        github.com/google/docsy v0.8.0 // indirect
        github.com/google/docsy/dependencies v0.7.2 // indirect
        github.com/hugomods/images v0.8.3 // indirect
        github.com/hugomods/search v0.11.1 // indirect
        github.com/martignoni/hugo-notice v0.0.0-20240707105359-40327ac00cc4 // indirect
)
  • How are you using Docsy? As a:
    • Hugo module
    • NPM module
    • Git submodule
    • Other:
  • OS:
    • Linux
    • macOS
    • Windows
    • Other:

Problem

I run command to upgrade and get

(c2d) onknows@io3:~/git/ok/ok/infra.onknows.com$ hugo mod get -u github.com/google/docsysy
hugo: downloading modules …
hugo: collected modules in 20655 msgo: module github.com/google/docsysy: git ls-remote -q origin in /tmp/hugo_cache_onknows/modules/filecache/modules/pkg/mod/cache/vcs/71d06c32880eeaade1bd509096f4ab64f785a445aa3f2d0e7fe02e26c862926c: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
Error: failed to get ["-u" "github.com/google/docsysy"]: failed to execute 'go [get -u github.com/google/docsysy]': failed to execute binary "go" with args [get -u github.com/google/docsysy]: go: module github.com/google/docsysy: git ls-remote -q origin in /tmp/hugo_cache_onknows/modules/filecache/modules/pkg/mod/cache/vcs/71d06c32880eeaade1bd509096f4ab64f785a445aa3f2d0e7fe02e26c862926c: exit status 128:
        fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
 *errors.errorString

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions