Skip to content

cmd/vet: support cgo packages #4889

Closed
Closed
@mewmew

Description

@mewmew
What steps will reproduce the problem?
a.go located at http://play.golang.org/p/w44ApVc-Kr
1. go run a.go
2. go vet a.go

What is the expected output?
Output from go run:
%!s(int=5)

Output from go vet:
a.go:7: arg for printf verb %s of wrong type
exit status 1

What do you see instead?
Output from go run:
%!s(int=5)

Output from go vet:
vet: a.go:3:8: could not import C (can't find import: C)
exit status 1

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux

Which version are you using?  (run 'go version')
go version devel +8eb896294200 Sat Feb 23 15:08:36 2013 -0800 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions