Skip to content

Commit 839b227

Browse files
Generate golang sdk correctly (#154)
1 parent 2022dc1 commit 839b227

File tree

9 files changed

+85
-72
lines changed

9 files changed

+85
-72
lines changed

devops/CompileProtoFiles.ps1

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ function Update-Golang()
6060
protoc $( Get-ProtoPath ) `
6161
--go_out="$GoPath" `
6262
--go-grpc_out="$GoPath" `
63-
--go_opt=paths=source_relative `
64-
--go-grpc_opt=paths=source_relative `
63+
'--go_opt=module=github.com/trinsic-id/sdk' `
64+
'--go-grpc_opt=module=github.com/trinsic-id/sdk' `
6565
$( Get-ProtoFiles )
6666

6767
# flatten hierarchy
68-
Copy-Item -Path "$GoPath/pbmse/*" -Destination "$GoPath" -recurse -Force
6968
Copy-Item -Path "$GoPath/models/*" -Destination "$GoPath" -recurse -Force
70-
Remove-Item -Path "$GoPath/pbmse" -Force -Recurse
69+
Remove-Item -Path "$GoPath/go" -Force -Recurse
7170
Remove-Item -Path "$GoPath/models" -Force -Recurse
7271
}
7372

@@ -117,10 +116,15 @@ function Update-Java()
117116
$( Get-ProtoFiles )
118117
}
119118

119+
function Update-Python
120+
{
121+
# Python is handled in the BuildPython due to venv requirements
122+
. "./BuildPython.ps1" -RequirementsOnly $true
123+
}
124+
120125
Setup
121126
Update-Golang
122-
Update-Ruby
123-
Update-Swift
124-
Update-Java
125-
# Python is handled in the BuildPython due to venv requirements
126-
. "./BuildPython.ps1" -RequirementsOnly $true
127+
# Update-Ruby
128+
# Update-Swift
129+
# Update-Java
130+
# Update-Python

go/proto/common.pb.go

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/debug.pb.go

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/provider.pb.go

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/templates.pb.go

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/trust-registry.pb.go

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/universal-wallet.pb.go

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/proto/verifiable-credentials.pb.go

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/pbmse/v1/pbmse.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package pbmse.v1;
44

5-
option go_package = "github.com/trinsic-id/okapi/go/okapiproto";
5+
option go_package = "github.com/trinsic-id/sdk/go/okapiproto";
66
option java_package = "trinsic.okapi.pbmse";
77

88
// JWS

0 commit comments

Comments
 (0)