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
The file prefix and the nested message prefix will both be undefined because it's not a nested message and there's no package defined. Which means taht the output file path will be //Metadata.ts so when this code will be executed
It will try to find the relative path of //Metadata.ts with google/protobuf/Timestamp.ts which will result in an absolute path containing the current working directory.
The workaround is to always set a package name to get proto/contract//Metadata.ts and this seems to work correctly.
The text was updated successfully, but these errors were encountered:
Hello. I have the following protobuf definition
~/proto/contract/contract.proto
when generating the assembly script, it creates the following import
The reason for this is this code:
as-proto/packages/as-proto-gen/src/generate/file.ts
Lines 80 to 95 in 9a242cf
The file prefix and the nested message prefix will both be undefined because it's not a nested message and there's no package defined. Which means taht the output file path will be
//Metadata.ts
so when this code will be executedas-proto/packages/as-proto-gen/src/generate/ref.ts
Lines 46 to 49 in 9a242cf
It will try to find the relative path of
//Metadata.ts
withgoogle/protobuf/Timestamp.ts
which will result in an absolute path containing the current working directory.The workaround is to always set a package name to get
proto/contract//Metadata.ts
and this seems to work correctly.The text was updated successfully, but these errors were encountered: