Description of problem: Right now, running `make gen-doc` when the Insights Operator repository is not cloned into the GOPATH results in strange errors because that's what the code expects. It would be nice to fix that since I.O. now uses modern Go with modules and therefore cloning into GOPATH is no longer necessary, nor is it desirable. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
One commit before the one in mentione PR: running make gen-doc ... GatherMachineSet Error when running Example in package home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig method ExampleMostRecentMetrics exit status 1 sample2973194451432506304.go:2:9: cannot find package "." in: /home/psimovec/zaloha/insights-operator/vendor/home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig Error when running Example in package home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig method ExampleClusterOperators exit status 1 sample7734107962907469252.go:2:9: cannot find package "." in: /home/psimovec/zaloha/insights-operator/vendor/home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig Error when running Example in package home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig method ExampleNodes exit status 1 sample777803314506547199.go:2:9: cannot find package "." in: /home/psimovec/zaloha/insights-operator/vendor/home/psimovec/zaloha/insights-operator/pkg/gather/clusterconfig Done% After applying commit from this PR ... GatherMachineSet ExampleMostRecentMetrics ExampleClusterOperators ExampleNodes ExampleMostRecentMetrics ExampleClusterOperators ExampleNodes Done make gen-doc 74.55s user 5.21s system 511% cpu 15.597 total
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196