You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some open source projects have invalid repo names, such as with dashes. We can support this by making repofinders automatically translate a valid name into the invalid one by, e.g., accepting a list of rename mappings or a code snippet of a transform to perform on names.
The goal is to have the "bad name" be present on the git server and on the local filesystem, while the manifest still contains the valid repo name.
The text was updated successfully, but these errors were encountered:
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#5 and mitigates #4.
QbtConfig might look like this:
Function<String, String> transformNames = new Function<String, String>() {
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",
),
]),
// ...
);
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#5 and mitigates #4.
QbtConfig might look like this:
Function<String, String> transformNames = new Function<String, String>() {
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",
),
]),
// ...
);
Some open source projects have invalid repo names, such as with dashes. We can support this by making repofinders automatically translate a valid name into the invalid one by, e.g., accepting a list of rename mappings or a code snippet of a transform to perform on names.
The goal is to have the "bad name" be present on the git server and on the local filesystem, while the manifest still contains the valid repo name.
The text was updated successfully, but these errors were encountered: