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

Support Bazel workspaces that have packages with same name in different paths #40

Closed
plaird opened this issue Dec 19, 2019 · 1 comment
Assignees
Labels
user feature New feature or request

Comments

@plaird
Copy link
Contributor

plaird commented Dec 19, 2019

As a BEF user with a particular Bazel workspace
I would like to import the workspace entirely
Such that there is a way to handle multiple Bazel packages with the same leaf path name

Example:
Consider a Bazel workspace with this structure:

//projects/path1/apple-api/BUILD (java_library target here)
//projects/path2/apple-api/BUILD (java_library target here)

Right now you cannot import the entire workspace, you have to choose to only import one of the apple-api packages. This is because we name the Eclipse project with the leaf node of the path (apple-api). An Eclipse workspace cannot contain two projects of the same name.

@plaird plaird added the user feature New feature or request label Mar 31, 2020
@plaird
Copy link
Contributor Author

plaird commented Oct 9, 2020

Initial implementation should just tack on a numeric on the end of package name as needed. In the above example, the two projects would get named:

  • apple-api
  • apple-api2

without regard to the path names. So apple-api2 may be the project for package //projects/path1/apple-api/

But eventually I would like to support user configuration of the chosen project names using inline annotations in the BUILD files: see #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant