Skip to content

Minor nits in update-codegen.sh#2028

Merged
knative-prow-robot merged 2 commits into
knative:masterfrom
dprotaso:update-codegen
Sep 16, 2018
Merged

Minor nits in update-codegen.sh#2028
knative-prow-robot merged 2 commits into
knative:masterfrom
dprotaso:update-codegen

Conversation

@dprotaso
Copy link
Copy Markdown
Member

MInor nits in hack/update-codegen.sh

Pulling from: #2009

@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 16, 2018
@dprotaso
Copy link
Copy Markdown
Member Author

/assign @adrcunha

Comment thread hack/update-codegen.sh
set -o nounset
set -o pipefail

if [ -z "${GOPATH:-}" ]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is nice. We should move this to library.sh, so all scripts will benefit from it.

Comment thread hack/update-codegen.sh
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate/boilerplate.go.txt

# Depends on generate-groups.sh to install bin/deepcopy-gen
${GOPATH}/bin/deepcopy-gen --input-dirs \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if update-codegen.sh and verify-codegen.sh should be helper scripts in test-infra, so all repos can benefit from updates like this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Would test-infra repo vendor the dependencies?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, I was thinking in something simpler, just the logic in this script.

@adrcunha
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2018
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha, dprotaso

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

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 16, 2018
@knative-prow-robot knative-prow-robot merged commit 2bdfcb3 into knative:master Sep 16, 2018
@dprotaso dprotaso deleted the update-codegen branch September 17, 2018 13:48
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. 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.

3 participants