Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Ease ability to depend on external workspace from parent workspace #45

Open
ittaiz opened this issue Mar 28, 2018 · 1 comment
Open

Comments

@ittaiz
Copy link
Member

ittaiz commented Mar 28, 2018

Essentially I'd like to expose an API like addExternalRepository(repoName) which copies the repo directory from runfiles and adds it to the test workspace (as a local repository).
Part of the challenge is that it seems that at least for some use-cases you need to manually generate BUILD files and those need to have custom content (for example use java_import) so I'm not sure how this should work.
I do know the current API is hard to use.
Some very rough parts can be observed in addExternalRepositoryFor, repositoryDeclarationFor, writeWorkspaceFileWithRepositories from https://github.com/bazelbuild/bazel-integration-testing/blob/21425e04588cb687da085b15524a337bfb28c6c6/javatests/build/bazel/tests/integration/BazelBaseTestCaseTest.java

@ittaiz
Copy link
Member Author

ittaiz commented Apr 29, 2018

I think #71 solved this for archives.
We should probably solve it for git_repository and we can close this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant