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
I’m running into a weird issue. We run tapioca dsl --verify on CI and recently it started to detect uncommitted changes and indeed when running tapioca dsl on the CI it does generate differently than it does on local. To give you an example, the model
class MyModel
+ include GeneratedAttributeMethods
extend CommonRelationMethods
extend GeneratedRelationMethods
Happens for multiple models that were not even modified recently. Tested both on tapioca (0.13.3) and the newest tapioca (0.15.1). We don’t have any compiler options.
CI is Github actions with ubuntu-latest is Ubuntu 24.04 TLS x86 architecture and on local I'm running on an M1 Macbook Air.
Besides the architecture, there is no difference between the two setups, environment variables and Tapioca config file is the same. Any ideas would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
If the setup is correct I'd also make sure the table_name assignment is running upon application boot before we trigger the DSL compiler. If not the code would be looking at a my_model table instead of my_table.
I’m running into a weird issue. We run
tapioca dsl --verify
on CI and recently it started to detect uncommitted changes and indeed when runningtapioca dsl
on the CI it does generate differently than it does on local. To give you an example, the modelwill generate the following
rbi
file on local (M1 machine)and on CI, which runs on x86 linux I get
class MyModel + include GeneratedAttributeMethods extend CommonRelationMethods extend GeneratedRelationMethods
Happens for multiple models that were not even modified recently. Tested both on
tapioca (0.13.3)
and the newesttapioca (0.15.1)
. We don’t have any compiler options.CI is Github actions with
ubuntu-latest
is Ubuntu 24.04 TLS x86 architecture and on local I'm running on an M1 Macbook Air.Besides the architecture, there is no difference between the two setups, environment variables and Tapioca config file is the same. Any ideas would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: