Skip to content

Commit

Permalink
Merge pull request bazelbuild#13 from meteorcloudy/registries
Browse files Browse the repository at this point in the history
Support using %workspace% in registry URL
  • Loading branch information
Wyverald authored May 17, 2021
2 parents c660ce5 + 3ee4868 commit db0338d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ private Optional<GetModuleFileResult> getModuleFile(ModuleKey key, StarlarkOverr
ImmutableList.Builder<Registry> registryObjects = new ImmutableList.Builder<>();
for (String registryUrl : registries) {
try {
registryObjects.add(registryFactory.getRegistryWithUrl(registryUrl));
registryObjects.add(registryFactory.getRegistryWithUrl(
registryUrl.replace("%workspace%", workspaceRoot.getPathString())));
} catch (URISyntaxException e) {
throw new ModuleFileFunctionException(e);
}
Expand Down

0 comments on commit db0338d

Please sign in to comment.