-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
../../pkg/api/v1/account.pb.gw.go:107:3: undefined: runtime.CamelCaseFieldMask #3
Comments
Hi @sweeny-here, this issue comes when there is version mismatch between generators and runtime libraries. We have also faced this earlier. Can you please try building after running below commands
The proper fix is to have tools also versioned under go modules as described Also please note that current optisam version is bit old and we are going to publish the latest version very soon. |
Thanks DHarmjit - I tried your recommendation but it's not playing ball. Here are the steps I tried based on this article: The tools.go file was created manually based on the packages declared within the sources:
Set the module path the root of the optisam-backend repo:
Create a makefile to download and install the packages:
Clear any existing cache:
Download and install packages:
Now rebuild account-service:
Which repeats the earlier error:
Can you offer any further pointers? Does the account-service api need to be rebuilt? Found under path - optisam-backend/account-service/pkg/api/v1 |
Hi @sweeny-here, We don't need to add everything as tools because there are only few libraries which is used as tools as well as code dependency.
Can you try to run this command directly as there are 2
Can you try installing the updated version of protoc3 compiler. I will also try to setup this code and check If I am also facing the same error. |
The Makefile has the correct syntax. If running the command via the shell, then yes the second dollar sign needs to be dropped, as per:
The protoc compiler has been updated to v3x:
I followed your suggestion and updated the tools.go file and re-ran the makefile. Then switched back account-service directory but the error is persisting, as seen here:
|
When building account-service it errors out on:
The temp fix to comment out lines in file optisam-backend/account-service/pkg/api/v1/account.pb.gw.go
Can you assist or advise?
The text was updated successfully, but these errors were encountered: