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

Fix format string type error #416

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

jazzdan
Copy link

@jazzdan jazzdan commented Apr 17, 2018

groups is not a boolean (%t), but a pointer. I think this was meant
to print the type (%T).

Without this change you get the following error when running go vet in Go 1.10:

cmd/sonobuoy/app/rbac.go:108: Errorf format %t has arg groups of wrong type *github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList

Signed-off-by: Dan Miller dmiller@windmill.engineering

`groups` is not a boolean (`%t`), but a pointer. I think this was meant
to print the type (`%T`).

Without this change you get the following error when building on Go 1.10:

```
cmd/sonobuoy/app/rbac.go:108: Errorf format %t has arg groups of wrong type *github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList
```

Signed-off-by: Dan Miller <dmiller@windmill.engineering>
@chuckha chuckha self-requested a review April 17, 2018 16:47
@chuckha chuckha self-assigned this Apr 17, 2018
Copy link
Contributor

@chuckha chuckha left a comment

Choose a reason for hiding this comment

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

yes, you're right! Thanks for the fix. This also cause another issue to open:

#417

@chuckha chuckha merged commit 65c8375 into vmware-tanzu:master Apr 19, 2018
jhamilton1 pushed a commit to jhamilton1/sonobuoy that referenced this pull request Jun 27, 2018
`groups` is not a boolean (`%t`), but a pointer. I think this was meant
to print the type (`%T`).

Without this change you get the following error when building on Go 1.10:

```
cmd/sonobuoy/app/rbac.go:108: Errorf format %t has arg groups of wrong type *github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList
```

Signed-off-by: Dan Miller <dmiller@windmill.engineering>
Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
jhamilton1 pushed a commit to jhamilton1/sonobuoy that referenced this pull request Jun 27, 2018
`groups` is not a boolean (`%t`), but a pointer. I think this was meant
to print the type (`%T`).

Without this change you get the following error when building on Go 1.10:

```
cmd/sonobuoy/app/rbac.go:108: Errorf format %t has arg groups of wrong type *github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList
```

Signed-off-by: Dan Miller <dmiller@windmill.engineering>
Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com

Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
ceridwen pushed a commit to ceridwen/sonobuoy that referenced this pull request Jul 19, 2018
`groups` is not a boolean (`%t`), but a pointer. I think this was meant
to print the type (`%T`).

Without this change you get the following error when building on Go 1.10:

```
cmd/sonobuoy/app/rbac.go:108: Errorf format %t has arg groups of wrong type *github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList
```

Signed-off-by: Dan Miller <dmiller@windmill.engineering>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants