qtmoc copies all imports
stevewlrls opened this issue · 0 comments
stevewlrls commented
Using go 1.17 and "per module" install of the Qt binding, qtmoc seems to copy all imports into the moc.go file. Test case:
- Start with the advanced example for QTableView in a new folder (using Mac Monterey but that's probably not significant).
- Do 'go mod init tableview' (for example).
- Follow "per module" install instructions for Qt binding.
- Try "qtdeploy build" ... Go compiler reports ./moc.go:9:2: imported and not used: "os"
Build is successful if Qt binding is installed globally (GO111MODULE=off) and qtdeploy is also invoked with per module support turned off.