remote-apis icon indicating copy to clipboard operation
remote-apis copied to clipboard

*:go_default_library should be alias of *:xyz_go_proto

Open Yannic opened this issue 4 years ago • 0 comments

I'm seeing the following error when building a go binary that depends on semver.proto and remote_execution.proto:

$ bazel build //:test
INFO: Invocation ID: 5938ca3c-1dae-404a-833e-20b364aed4bb
INFO: Analyzed target //:test (1 packages loaded, 2 targets configured).
INFO: Found 1 target...
INFO: From GoLink darwin_amd64_stripped/test:
link: warning: package "github.com/bazelbuild/remote-apis/build/bazel/semver" is provided by more than one rule:
    //build/bazel/semver:semver_go_proto
    //build/bazel/semver:go_default_library
Set "importmap" to different paths in each library.
This will be an error in the future.
Target //:test up-to-date:
  bazel-bin/darwin_amd64_stripped/test
INFO: Elapsed time: 2.112s, Critical Path: 1.76s
INFO: 2 processes: 2 darwin-sandbox.
INFO: Build completed successfully, 3 total actions

BUILD:

go_binary(
    name = "test",
    srcs = [
        "test.go",
    ],
    deps = [
        "//build/bazel/remote/execution/v2:go_default_library",
        "//build/bazel/semver:semver_go_proto",
    ],
)

test.go:

package main

import ()

func main() {
}

Yannic avatar Mar 07 '20 20:03 Yannic