From 6b177a8af339b46ef8a9f958d1f45a6502107404 Mon Sep 17 00:00:00 2001 From: Carl Myers Date: Thu, 1 Mar 2018 10:20:12 -0800 Subject: [PATCH] Transforming LocalRepoFinder and QbtRemote classes. These classes allow the user to map a repo to a different name locally on disk and on the server, allowing those places to use names which contain otherwise invalid characters for repo names. Resolves TerabyteQbt/meta#5 and mitigates TerabyteQbt/meta#4. QbtConfig might look like this: Function transformNames = new Function() { public String apply(String name) { return name.replace("flume_ng", "flume-ng").replace("hadoop_lzo", "hadoop-lzo"); } } return new QbtConfig( new TransformingFormatLocalRepoFinder(gitLocalVcs, transformNames, workspaceRoot.toString()), // ... new MapQbtRemoteFinder([ formatremote: new TransformingFormatQbtRemote( gitRemoteVcs, transformNames, "ssh://git@github.mtv.cloudera.com/TerabyteQbt/%r.git", ), githubremote: new TransformingGithubQbtRemote( gitRemoteVcs, transformNames, githubToken, "TerabyteQbt", "%r", ), ]), // ... ); --- qbt-manifest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbt-manifest b/qbt-manifest index deb334f..0a95e8b 100644 --- a/qbt-manifest +++ b/qbt-manifest @@ -2206,7 +2206,7 @@ } } }, - "version": "6b09307ffd7af1eb7810d595108de34e502e512c" + "version": "3be9efbdbdbc4d851cbf05e7b92f1295cdf08952" }, "wrapper_generator": { "packages": {