Hack around broken bazel golang build rules.
This commit is contained in:
10
remote.go
10
remote.go
@ -1,8 +1,14 @@
|
||||
package main
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/laramiel/bazel-example-golang-remote/remote"
|
||||
|
||||
// HACK ALERT
|
||||
// The correct import is this:
|
||||
// "github.com/laramiel/bazel-example-golang-remote/remote"
|
||||
// But the bazel build rules for external golang packages like git_repository() are busted.
|
||||
// We hack around it by importing where those external dependencies end up:
|
||||
"github.com/laramiel/bazel-example-golang/external/ws_remote/remote"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
Reference in New Issue
Block a user