How Do You Troubleshoot the error “operator-sdk: cannot find module for path embed”?

Problem scenario
You run "make install" and get an error like this:

build github.com/operator-framework/operator-sdk/cmd/operator-sdk: cannot find module for path embed
make: *** [Makefile:65: install] Error 1

What should you do?

Solution
1. Edit the go.mod file. Replace this line:

module github.com/operator-framework/operator-sdk/

with this line

module github.com/operator-framework/operator-sdk/tree/master/

Leave a comment

Your email address will not be published. Required fields are marked *