Dear Bazel devs,
When teaching Bazel, one of the challenges I find is to explain why there is a new_git_repository but there is no new_http_archive.
http_archive has the option to give the BUILD/WORKSPACE file as optional, in an intuitive way, someone would expect the same for git_repository.
Is there any good reason why to have git_repository and new_git_repository instead of having just a single git_repository where BUILD/WORKSPACE files are optional?
I took a look at the implementation and at a first glance does not look like it should be complicated to do.
Any thoughts on that? Would the Bazel team be in favor of getting rid of new_get_repository and make git_repository consistent with http_archive?
Note: new_http_archive was existing in the past, it just got merged to http_archive. I wonder if the fact that it was not done the same with new_git_repository was intentional or not.
Thanks
Xavi