Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: add bin/*, resolve and watch-resolve target 🚕 #2569

Merged
merged 2 commits into from
May 11, 2020

Conversation

vdemeester
Copy link
Member

Changes

Those targets are there to build binaries using go and the images
using ko resolve without applying the changes.

This also adds a generated target.

Signed-off-by: Vincent Demeester [email protected]

/kind misc
/cc @afrittoli @sbwsg

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Add bin/*, resolve, watch-resolve and generated target to the Makefile

Those targets are there to build binaries using `go` and the images
using `ko resolve` without applying the changes.

Signed-off-by: Vincent Demeester <[email protected]>
@tekton-robot tekton-robot requested review from afrittoli and a user May 7, 2020 11:06
@tekton-robot tekton-robot added kind/misc Categorizes issue or PR as a miscellaneuous one. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 7, 2020
Copy link
Member

@chmouel chmouel left a comment

Choose a reason for hiding this comment

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

Just wondering about the removal of --strict removal

KO = $(BIN)/ko
$(BIN)/ko: PACKAGE=github.com/google/ko/cmd/ko

.PHONY: apply
apply: | $(KO) ; $(info $(M) ko apply -f config/) @ ## Apply config to the current cluster
$Q $(KO) apply --strict -f config
$Q $(KO) apply -f config
Copy link
Member

Choose a reason for hiding this comment

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

why did you remove the --strict, is that intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes and no 😅 With --strict, it doesn't build any image for me (for some weird reason).

Copy link
Member

Choose a reason for hiding this comment

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

--strict should only filter out things prefixed with ko://, so if you are seeing stuff that is prefixed not building we should talk :)

Copy link
Member Author

Choose a reason for hiding this comment

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

@mattmoor just realized why… ko:// got temporarly remove because of ko-build/ko#164 I think 😝 hence why it doesn't build a thing 😝

Copy link
Member

Choose a reason for hiding this comment

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

maybe you could add the strict as an option?

This runs the ./hack scripts.

Signed-off-by: Vincent Demeester <[email protected]>
@chmouel
Copy link
Member

chmouel commented May 11, 2020

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 11, 2020
Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Thanks for these :)
/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afrittoli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 11, 2020
@tekton-robot tekton-robot merged commit 56bc801 into tektoncd:master May 11, 2020
@vdemeester vdemeester deleted the makefile-build branch May 11, 2020 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants