googleapis / elixir-google-api

Elixir client libraries for accessing Google APIs.

Home Page:https://hex.pm/users/google-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error loading module `Elixir.GoogleApi.Compute.V1.Model.HTTPHealthCheck`

florinpatrascu opened this issue · comments

Hi there,

There are two source modules:

  • clients/compute/lib/google_api/compute/v1/model/http_health_check.ex
  • clients/compute/lib/google_api/compute/v1/model/http_health_check_1.ex

and both of them define Poison decoder functions: GoogleApi.Compute.V1.Model.HttpHealthCheck, except that one of them defines it as: GoogleApi.Compute.V1.Model.HttpHealthCheck, see: http_health_check_1.ex and the other one defines it as: GoogleApi.Compute.V1.Model.HTTPHealthCheck; the clients/compute/lib/google_api/compute/v1/model/http_health_check.ex, respectively. This will raise the following error:

[error] beam/beam_load.c(1440): Error loading module 'Elixir.GoogleApi.Compute.V1.Model.HTTPHealthCheck':
  BEAM file exists but it defines a module named Elixir.GoogleApi.Compute.V1.Model.HttpHealthCheck

Environment details

OS: mac OS (BigSur)
Hex:    0.21.2
Elixir: 1.11.4
OTP:    23.3.4.4

Any ways to resolve this? We're hitting this issue when running a created release @florinpatrascu