Hack around broken bazel golang build rules.

This commit is contained in:
Laramie Leavitt committed 2016-03-03 18:12:32 -08:00
1 parent a2e269c3f3
commit dfd84d2172
7 files changed
+54 -28

No files matched your search

+9 -2
View File
@@ -1,8 +1,15 @@
package main
package main
import (
"fmt"
"github.com/laramiel/bazel-example-golang-bare/bare"
// HACK ALERT
// The correct import is this:
// "github.com/laramiel/bazel-example-golang-bare/bare"
// But the bazel build rules for subversion packages don't support alternate
// go_prefix() commands.
// We hack around it by importing where those external dependencies end up:
"github.com/laramiel/bazel-example-golang/submodule/src/bare"
)
func main() {
+9 -2
View File
@@ -1,8 +1,15 @@
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-bare/bare"
// But the bazel build rules for subversion packages don't support alternate
// go_prefix() commands.
// We hack around it by importing where those external dependencies end up:
"github.com/laramiel/bazel-example-golang/submodule/src/remote/remote"
)
func main() {