Skip to content

Commit

Permalink
fix: set correct targetfile in muspec
Browse files Browse the repository at this point in the history
  • Loading branch information
veith committed May 17, 2022
1 parent dd6548f commit def285b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion furo/internal/cmd/spec2muSpec/typeUpdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ func updateAndStoreMicroTypes(typeItems map[string]*UTshadowNode) {
}
fieldline = append(fieldline, "#"+f.Description)
fields.Set(iKey, strings.Join(fieldline, " "))

})

muType := &microtypes.MicroType{
Type: strings.Join(typeLine, " "), //type: "sample.Sample #Sample"
Fields: fields,
Target: shadowNode.edgeMicroTypeNode.Target,
//Target: shadowNode.edgeMicroTypeNode.Target,
Target: shadowNode.edgeTypeNode.TypeSpec.XProto.Targetfile,
}

// add type to "file"
Expand Down

0 comments on commit def285b

Please sign in to comment.