Patch to make a gem into a Go gem right after bundle gem
- Download patch_for_go_gem.rb
- Run
bundle gem <GEM_NAME> --ext=c- The other options for
bundle gemare optional
- The other options for
- Run
ruby patch_for_go_gem.rb --file /path/to/GEM_NAME.gemspec --dry-run - Run
ruby patch_for_go_gem.rb --file /path/to/GEM_NAME.gemspec cdto the same location asext/GEM_NAME/go.mod- Run
go get -u github.com/ruby-go-gem/go-gem-wrapper@latest