-
Notifications
You must be signed in to change notification settings - Fork 397
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
[Bug] Dependency github.com/openshift/[email protected]+incompatible is missing #706
Comments
One easy way to test this is using the Dockerfile I've created in #707 and build the image:
|
@smuda the openshift-api repository does not define any releases or tags. Is this working because the dependency is still cached somewhere? In that case yes, a workaround would be good. What would you suggest? The replace that you used seems to point to a tag that also needs to be cached? |
@pb82 If I read stackoverflow correctly, there used to be tags in the openshift-api repository when the dependency was created and that tag has then been cached in proxy.golang.org which is normally used when resolving dependencies. Looking at the release-3.9 branch, there is no go.mod but in the later 4.x branches there is. Perhaps the best way would be to reference a later branch? Openshift 4.10 was recently released and could be a good candidate?
That however breaks a lot of stuff:
I could put some time into resolving these issues, if you decide that's the route that is most useful. |
I found issue 456 and issue 587 where they discuss adding tags which seems to have been used earlier. There are also a number of references to that issue where other projects (like grafana-operator) updates their go.mod to use a specific commit, probably using something like I'm going to create a PR with that exact change. |
Describe the bug
When building from source and opting out of using proxy.golang.org (for example by setting GOPROXY=direct) there is an error of a missing revision:
Looking at github.com/openshift/api there are no tags at all which could probably explain the error. As building from source works when using proxy.golang.org I suppose there has been tags in the project previously which has been cached.
This could probably be fixed by using the release-3.9 branch instead:
or using a replace notation:
I'd be happy to create a PR.
(The usecase for opting out of using proxy.golang.org is building inside a restricted network environment, using athens proxy for fetching modules)
Version
v4.2.0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All modules should download.
Suspect component/Location where the bug might be occuring
go.mod, sort of... :-)
The text was updated successfully, but these errors were encountered: