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
First off, awesome job on this package, I was really impressed with the api it generated so much so we started migrating our GORM queries across to use this package instead.
So the issue is I have an Enum that is imported from another package. This seems to work fine on other code generations we have. However, when I generated code using go-queryset I got an unexpected result.
The struct // gen:qs is above looks like this:
type Example struct {
PriceID int64
Currency forex.Currency
....
}
The error is that the generated code has placed v1 as the package selector and not the actual package name forex.
This is non-blocking for me as It's very easy to fix up manually. However, this would suggest that the code generation is picking up v1 from the file path? The import is like so: import "go.company.com/internal-files/companyapi/forex/v1".
Happy to help look into this problem but I thought I'd raise it first just in case something like this has occurred else where.
The text was updated successfully, but these errors were encountered:
First off, awesome job on this package, I was really impressed with the api it generated so much so we started migrating our GORM queries across to use this package instead.
So the issue is I have an Enum that is imported from another package. This seems to work fine on other code generations we have. However, when I generated code using go-queryset I got an unexpected result.
The struct
// gen:qs
is above looks like this:The Generated code for currency looks like this:
The error is that the generated code has placed
v1
as the package selector and not the actual package nameforex
.This is non-blocking for me as It's very easy to fix up manually. However, this would suggest that the code generation is picking up v1 from the file path? The import is like so:
import "go.company.com/internal-files/companyapi/forex/v1"
.Happy to help look into this problem but I thought I'd raise it first just in case something like this has occurred else where.
The text was updated successfully, but these errors were encountered: