Hold a cgo file's directory whole: its preamble may include from below it (hq ADR 0267, review)
This commit is contained in:
@@ -351,6 +351,8 @@ func goFileReads(file string) (imports, embeds []string, err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// A cgo file may include from below its directory: the directory is held whole.
|
||||
embeds = append(embeds, ".")
|
||||
continue
|
||||
}
|
||||
imports = append(imports, ip)
|
||||
|
||||
Reference in New Issue
Block a user