Skip to content

Build fails due to deleted dependency github.com/mitchellh/osext #1691

@mengtong2024

Description

@mengtong2024

🐛 Build fails due to deleted dependency github.com/mitchellh/osext

Description

When building with Go modules, the dependency chain in clickhouse-go/v2 eventually depends on github.com/mitchellh/osext, which has been deleted from GitHub.
This causes build failures during go build or go mod download.

Error log


go: github.com/ClickHouse/clickhouse-go/[email protected] requires
        github.com/Microsoft/[email protected] requires
        github.com/open-policy-agent/[email protected] requires
        oras.land/[email protected] requires
        github.com/distribution/distribution/[email protected] requires
        github.com/mitchellh/[email protected]: invalid version: git ls-remote -q origin in /Users/dp/go/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
        panic:could not read Username for 'https://github.com': terminal prompts disabled

Root cause

The upstream dependency github.com/mitchellh/osext has been removed or made unavailable.
This breaks transitive dependencies that rely on it (through distribution/v3oras-goopahcsshimclickhouse-go).

.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions