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

type ... will be ignored because it was not present on the scan path. #101

Open
ilejn opened this issue Jul 13, 2018 · 0 comments
Open

type ... will be ignored because it was not present on the scan path. #101

ilejn opened this issue Jul 13, 2018 · 0 comments

Comments

@ilejn
Copy link

ilejn commented Jul 13, 2018

proteus handles []byte,

>proteus  proto -f /tmp/proteus -p ufdata/tst --verbose
INFO: Generated proto: /tmp/proteus/ufdata/tst/generated.proto

>cat ./main.go 
package main

// Exported smth
//proteus:generate
type Exported struct {
	Field string
	SrcIP []byte `json:"src_ip"`
}

while does not handle net.IP which is effectively the same producing
type "IP" of package net will be ignored because it was not present on the scan path.

>proteus  proto -f /tmp/proteus -p ufdata/tst --verbose
WARN: type "IP" of package net will be ignored because it was not present on the scan path.
INFO: Generated proto: /tmp/proteus/ufdata/tst/generated.proto
>cat ./main.go 
package main

import "net"

// Exported smth
//proteus:generate
type Exported struct {
	Field string
	SrcIP net.IP `json:"src_ip"`
}

I can see in strace that proteus reads net/ip.go source file, while it does not help.
Is there any way to use such types?

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

No branches or pull requests

1 participant