Description
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area registry
What versions of software are you using?
Go project
Operating System and version: RHEL 8.8
Go Pkg Version: 1.19
Bug Summary
Describe the bug:
The main.go
source paths under manager
and run
makefile rules are incorrect:
As a result, the local build of the registry operator fails.
To Reproduce:
Run make manager
.
Expected behavior
Local build should successfully run and create a executable binary bin/manager
.
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
test -s /home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin/controller-gen && /home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin/controller-gen --version | grep -q v0.9.2 || \
GOBIN=/home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin GOFLAGS="" go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2
/home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
go build -o /home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/bin/manager ./cmd/main.go
stat /home/mvaldron/source/repos/michael-valdron/devfile-registry-operator/cmd/main.go: directory not found
make: *** [Makefile:122: manager] Error 1
Additional context
Any workaround?
N/A
Suggestion on how to fix the bug
- Correct Makefile#L121 to be
go build -o $(LOCALBIN)/manager ./main.go
- Correct Makefile#L125 to be
$(LOCALBIN)/manager
Metadata
Metadata
Assignees
Type
Projects
Status
Done ✅