Skip to content

Registry operator incorrect local build source path #1329

Closed
devfile/registry-operator
#58
@michael-valdron

Description

@michael-valdron

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

Metadata

Metadata

Labels

area/registryDevfile registry for stacks and infrastructurekind/bugSomething isn't working

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions