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

go install does not work because of mitchellh/osext #41

Open
hahuang65 opened this issue Nov 28, 2023 · 2 comments
Open

go install does not work because of mitchellh/osext #41

hahuang65 opened this issue Nov 28, 2023 · 2 comments

Comments

@hahuang65
Copy link

I'm trying to build an AMI that includes esbulk. However, it no longer can grab mitchellh/osext:

GOPATH=/tmp GOCACHE=/tmp GOBIN=/usr/local/sbin HOME=/root go install github.com/miku/esbulk/cmd/[email protected]


==> amazon-ebs: + GOPATH=/tmp
==> amazon-ebs: + GOCACHE=/tmp
==> amazon-ebs: + GOBIN=/usr/local/sbin
==> amazon-ebs: + HOME=/root
==> amazon-ebs: + go install github.com/miku/esbulk/cmd/[email protected]
==> amazon-ebs: go: downloading github.com/miku/esbulk v0.7.15
==> amazon-ebs: go: github.com/miku/esbulk/cmd/[email protected]: github.com/miku/[email protected] requires
==> amazon-ebs:         github.com/containerd/[email protected] requires
==> amazon-ebs:         github.com/Microsoft/[email protected] requires
==> amazon-ebs:         github.com/open-policy-agent/[email protected] requires
==> amazon-ebs:         oras.land/[email protected] requires
==> amazon-ebs:         github.com/distribution/distribution/[email protected] requires
==> amazon-ebs:         github.com/mitchellh/[email protected]: invalid version: git ls-remote -q origin in /tmp/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
==> amazon-ebs:         fatal: could not read Username for 'https://github.com': terminal prompts disabled
==> amazon-ebs: Confirm the import path was entered correctly.
==> amazon-ebs: If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.

As far as I can tell, that repository has been made private, or deleted.

@miku
Copy link
Owner

miku commented Nov 29, 2023

Similar problems: confluentinc/confluent-kafka-go#1102

In theory, the module proxy should take care of that. Maybe you can try to explicitly set the GOPROXY env variable, like so:

GOPROXY=proxy.golang.org GOPATH=/tmp GOCACHE=/tmp ...

@hahuang65
Copy link
Author

@miku thanks, that worked out for now. I would assume that the project should update the dependencies at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants