When using the AutoConfigEmulator=true parameter, the driver set the SPANNER_EMULATOR_HOST env automaticly. This is causing issue when the application need two containers for its need.
|
if err := os.Setenv("SPANNER_EMULATOR_HOST", host); err != nil { |
|
return err |
|
} |
On the JDBC implement, the driver also doesn't touch application's env:
https://github.com/search?q=repo%3Agoogleapis%2Fjava-spanner-jdbc+SPANNER_EMULATOR_HOST&type=code