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

How can I refer to a release as a Go module dependency? #1323

Closed
nickwallen opened this issue Aug 17, 2021 · 3 comments
Closed

How can I refer to a release as a Go module dependency? #1323

nickwallen opened this issue Aug 17, 2021 · 3 comments

Comments

@nickwallen
Copy link

nickwallen commented Aug 17, 2021

How can I refer to a release as a Go module dependency?

The current tag naming scheme seems to tag the 1.2.2 release as v1beta2-1.2.2-3.0.0. This format does not seem to follow the semantic versioning scheme that Go modules expect, but I could be wrong.

This may just be related to #1198, but here is what I've tried.

$ go mod init example.com/m
$ go get k8s.io/client-go
$ go get k8s.io/apiextensions-apiserver
$ go get github.com/GoogleCloudPlatform/[email protected]

go get: github.com/GoogleCloudPlatform/spark-on-k8s-operator@none updating to
	github.com/GoogleCloudPlatform/[email protected] requires
	k8s.io/[email protected]: reading k8s.io/apiextensions-apiserver/go.mod at revision v0.0.0: unknown revision v0.0.0

Alternatively, I tried to use the k8s.io version specified in the v1beta2-1.2.2-3.0.0 release.

$ go mod init example.com/m
$ go get k8s.io/[email protected]
$ go get github.com/GoogleCloudPlatform/[email protected]

go get: github.com/GoogleCloudPlatform/spark-on-k8s-operator@none updating to
	github.com/GoogleCloudPlatform/[email protected] requires
	k8s.io/[email protected]: reading k8s.io/apiextensions-apiserver/go.mod at revision v0.0.0: unknown revision v0.0.0
@sairamankumar2
Copy link
Contributor

Hi @nickwallen
I also face the same issue and were you able to find the solution to fix this issue. Have attached the go get output.

go get github.com/GoogleCloudPlatform/spark-on-k8s-operator go: github.com/GoogleCloudPlatform/[email protected] requires k8s.io/[email protected] requires k8s.io/[email protected]: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants