Skip to content

Commit

Permalink
fix: always reference the internal package. (#1909)
Browse files Browse the repository at this point in the history
In case the auto-generated codes do not.

Fixes #1908
  • Loading branch information
harrisonluo committed Mar 17, 2023
1 parent b8a2a5e commit dc4b77d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions google-api-go-generator/gen.go
Expand Up @@ -732,6 +732,7 @@ func (a *API) GenerateCode() ([]byte, error) {
pn("var _ = strings.Replace")
pn("var _ = context.Canceled")
pn("var _ = internaloption.WithDefaultEndpoint")
pn("var _ = internal.Version")
pn("")
pn("const apiId = %q", a.doc.ID)
pn("const apiName = %q", a.doc.Name)
Expand Down

0 comments on commit dc4b77d

Please sign in to comment.