Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/fixGoPaths
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

# Go files are generated into their full module path.
# This script moves the files to the correct location.
cp -r ./go/github.com/gaming-platform/api/go/* ./go
rm -rf ./go/github.com
3 changes: 2 additions & 1 deletion bin/generatePhpFactories
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function generateFactories(string $packageNamespace, string $packagePath, array

$factoryName = str_replace('\\', '', $matches['namespace']) . $matches['version'] . 'Factory';
$factoryPath = str_replace('\\', '/', $matches['namespace']) . '/' . $matches['version'];
$methodName = 'create' . str_replace('\\', '_', $matches['message']);

$factories[$factoryName] ??= [
'path' => $packagePath . '/' . $factoryPath . '/' . $factoryName . '.php',
Expand All @@ -46,7 +47,7 @@ function generateFactories(string $packageNamespace, string $packagePath, array
];

$factories[$factoryName]['methods'][] = [
'name' => 'create' . $matches['message'],
'name' => $methodName,
'returnType' => '\\' . $class
];
}
Expand Down
2 changes: 1 addition & 1 deletion go/chat/v1/messaging.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

251 changes: 251 additions & 0 deletions go/common/v1/messaging.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading