Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented Sep 18, 2018

I spent too long scratching my head wondering why I was getting:

$ deepcopy-gen -i . --logtostderr --v 5
...
I0918 13:34:13.110855   17959 deepcopy.go:146] Considering pkg "github.com/openshift/installer/pkg/ipnet"
I0918 13:34:13.110870   17959 deepcopy.go:164]   no tag
I0918 13:34:13.110878   17959 deepcopy.go:173]   considering type "github.com/openshift/installer/pkg/ipnet.IPNet"
I0918 13:34:13.110892   17959 main.go:87] Completed successfully.

despite:

$ head -n4 ipnet.go
// +k8s:deepcopy-gen=package

// Package ipnet wraps net.IPNet to get CIDR serialization.
package ipnet

It looks like only doc.go has been checked for file-level comments since the initial commit in this repository df39b41 (2015-10-15).

Personally, I'd prefer if this tag could live in any file, but I haven't done the legwork to know if lifting the doc.go restriction would have accidental side-effects or not.

I spent too long scratching my head wondering why I was getting:

  $ deepcopy-gen -i . --logtostderr --v 5
  ...
  I0918 13:34:13.110855   17959 deepcopy.go:146] Considering pkg "github.com/openshift/installer/pkg/ipnet"
  I0918 13:34:13.110870   17959 deepcopy.go:164]   no tag
  I0918 13:34:13.110878   17959 deepcopy.go:173]   considering type "github.com/openshift/installer/pkg/ipnet.IPNet"
  I0918 13:34:13.110892   17959 main.go:87] Completed successfully.

despite:

  $ head -n4 ipnet.go
  // +k8s:deepcopy-gen=package

  // Package ipnet wraps net.IPNet to get CIDR serialization.
  package ipnet

It looks like only doc.go has been checked for file-level comments
since the initial commit in this repository df39b41 (First iteration
of go2idl, 2015-10-15).

Personally, I'd prefer if this tag could live in any file, but I
haven't done the legwork to know if lifting the doc.go restriction
would have accidental side-effects or not.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 18, 2018
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 18, 2018
@sttts
Copy link
Contributor

sttts commented Nov 13, 2018

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 13, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sttts, wking

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2018
@k8s-ci-robot k8s-ci-robot merged commit fd15ee9 into kubernetes:master Nov 13, 2018
@wking wking deleted the deepcopy-gen-package-tag-doc.go branch November 13, 2018 15:44
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants