Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Conversation

@gianarb
Copy link
Contributor

@gianarb gianarb commented May 28, 2020

No description provided.

@gianarb gianarb requested a review from deitch May 28, 2020 06:34
Copy link
Contributor

@deitch deitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something seems inconsistent?


ginkgo: $(GINKGO)
$(GINKGO): $(TOOLS_DIR)/go.mod # Build kustomize from tools folder.
cd $(TOOLS_DIR) && go build -tags=tools -o $(BIN_DIR)/ginkgo github.com/onsi/ginkgo/ginkgo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is inconsistent here. It checks if $(GINKGO) exists, which resolves to $(TOOLS_BIN_DIR)/ginkgo, which resolves to $(TOOLS_DIR)/$(BIN_DIR)/ginkgo, which resolves to $(REPO_ROOT)/hack/tools/bin/ginkgo, but then you are building it to -o $(BIN_DIR)/ginkgo, which is just ./bin/ginkgo. I think you wanted to target the actual $(GINKGO)?

It might be easier to just do

go build -o $@ github.com/onsi/ginkgo/ginkgo

@gianarb gianarb requested a review from deitch May 28, 2020 07:40
@gianarb gianarb merged commit 4df79fe into kubernetes-retired:master May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants