Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*:go_default_library should be alias of *:xyz_go_proto #123

Open
Yannic opened this issue Mar 7, 2020 · 0 comments · May be fixed by #124
Open

*:go_default_library should be alias of *:xyz_go_proto #123

Yannic opened this issue Mar 7, 2020 · 0 comments · May be fixed by #124

Comments

@Yannic
Copy link
Contributor

Yannic commented Mar 7, 2020

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 added a commit to Yannic/remote-apis that referenced this issue Mar 7, 2020
Yannic added a commit to Yannic/remote-apis that referenced this issue Mar 7, 2020
santigl pushed a commit to santigl/remote-apis that referenced this issue Aug 26, 2020
…#123)

* Fix moreflag to make command line args win over env vars.

* Fix moreflag to make command line args win over env vars.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant