-
Notifications
You must be signed in to change notification settings - Fork 21
dgr 78 panics with invalid memory address at deserialization #221
Comments
can you post the I saw yesterday that latest version of appc is handling isolator marshalling correctly so everything around isolator is in appc code now. |
The error is thrown on Travis, too: |
This is caused by isolators not being unmarshalled from YAML to the corresponding data structure. The APPC specification works with This happens:
A possible workaround: type DgrIsolator types.Isolator
func (i *DgrIsolator) UnmarshalYAML(func unmarshal(…)…) error {
var a struct {Name string; Value string `json:value` `yaml:valueraw`}
var b struct {Name string; Value []string `json:value` `yaml:valueraw`}
var c struct {Name string; Value uint64 `json:value` `yaml:valueraw`}
// …
if err := unmarshal(&a); err == nil {
str := json.ToString(&a) // exemplary!
i.(types.Isolator).UnmarshalJSON(str)
return
}
if … // try every type
} |
Thanks! (It's up to you to close this. ;-) ) |
I will when a new version will be released |
fixed in v79 |
Using
dgr 78
from HEAD:… throws an error:
The text was updated successfully, but these errors were encountered: