Skip to content

tools.go: Fix build constraints error message for the k8s.io/code-generator dependency #2566

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

Conversation

timflannagan
Copy link
Member

Description of the change:
Update the k8s.io/code-generator dependency and explicitly specify which
packages are needed in order to update codegen/mockgen, and silence the
following error locally:

error while importing k8s.io/code-generator: build constraints exclude all Go files in ...

Signed-off-by: timflannagan [email protected]

Motivation for the change:
Cleanup: silence warning on local IDEs.

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /doc
  • Commit messages sensible and descriptive

@openshift-ci
Copy link

openshift-ci bot commented Jan 12, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: timflannagan

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

@openshift-ci openshift-ci bot requested review from dinhxuanvu and njhale January 12, 2022 04:33
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 12, 2022
@timflannagan timflannagan force-pushed the cleanup/fix-tools-import-error-codegen branch from 993a65c to d9b4cbd Compare January 12, 2022 04:41
@akihikokuroda
Copy link
Member

The e2e error is probably fixed by #2554

@timflannagan timflannagan force-pushed the cleanup/fix-tools-import-error-codegen branch from 22a3e78 to d1e9c93 Compare February 17, 2022 00:11
…erator dependency

Update the k8s.io/code-generator dependency and explicitly specify which
packages are needed in order to update codegen/mockgen, and silence the
following error locally:

```
error while importing k8s.io/code-generator: build constraints exclude all Go files in ...
```

Signed-off-by: timflannagan <[email protected]>
Signed-off-by: timflannagan <[email protected]>
@timflannagan timflannagan force-pushed the cleanup/fix-tools-import-error-codegen branch from d1e9c93 to 0c2c376 Compare February 17, 2022 16:52
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 26, 2022
@openshift-ci
Copy link

openshift-ci bot commented Feb 26, 2022

@timflannagan: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@timflannagan timflannagan deleted the cleanup/fix-tools-import-error-codegen branch July 28, 2022 18:52
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. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants