go_library's with cgo enabled are not present in .project/.gopath #360
Labels
lang: go
Go rules integration
os: linux
Linux support
P3
We're not considering working on this, but happy to review a PR. (No assignee)
product: GoLand
GoLand plugin
product: IntelliJ
IntelliJ plugin
type: bug
OS: Ubuntu 17.10
Intellij plugin: 2018.06.11.0.3
Bazel: 0.15.0
IntelliJ IDEA: 2018.1.5 (ULTIMATE)
This prevents Intellij from seeing the files and suggesting code completion.
The example BUILD file below deponstrates
Example build file that shows the problem, when the line "cgo = True" is commented out, Intellij will synchronize the project and the test_???.go is linked under .project/.gopath/somewhere.net/test. But when cgo=True is enabled the file vanishes from the .gopath.
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["test.go"],
cgo = True,
importpath = "somewhere.net/test",
visibility = ["//visibility:private"],
)
go_binary(
name = "test",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
The text was updated successfully, but these errors were encountered: