-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
when invoking gapic-generator-cloud docker like this:
$ docker run --rm --user $UID \
--mount type=bind,source=`pwd`/google/showcase/v1beta1,destination=/in/google/showcase/v1beta1,readonly \
--mount type=bind,source=`pwd`/showcase-ruby,destination=/out \
gcr.io/gapic-images/gapic-generator-ruby:latestthe generator will fail with the Nil reference exception.
/usr/local/bundle/gems/gapic-generator-0.0.1/templates/default/helpers/presenters/gem_presenter.rb:62 \
:in `namespace': undefined method `split' for nil:NilClass (ActionView::Template::Error)
This can be remedied by supplying the docker generator with the --ruby-cloud-gem-name parameter:
$ docker run --rm --user $UID \
--mount type=bind,source=`pwd`/google/showcase/v1beta1,destination=/in/google/showcase/v1beta1,readonly \
--mount type=bind,source=`pwd`/showcase-ruby,destination=/out \
gcr.io/gapic-images/gapic-generator-ruby:latest --ruby-cloud-gem-name=showcase(this generates correctly)
There should be a sensible default for the gemname we can add to the gapic-generator-ruby to avoid this issue.
Metadata
Metadata
Assignees
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.