Skip to content

chore(grpc-gateway): drop dep files and deprecated grpc.Dial - #141

Merged
jun06t merged 1 commit into
masterfrom
chore/grpc-gateway-cleanup
Oct 6, 2026
Merged

jun06t merged 1 commit into
masterfrom
chore/grpc-gateway-cleanup

Conversation

@jun06t

@jun06t jun06t commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Summary

grpc-gateway に残っていた Go modules 移行前の名残と、非推奨 API を整理します。

  • Gopkg.toml / Gopkg.lock を削除 (grpc-gateway はルートの go.mod で管理されている)
  • Makefile の prepare ターゲット (dep ensure -v) を削除
  • gateway/main.go
    • grpc.Dial (deprecated) → grpc.NewClient
    • grpc.WithInsecure() (deprecated) → grpc.WithTransportCredentials(insecure.NewCredentials())

grpc.NewClient はデフォルトの name resolver が passthrough ではなく dns になりますが、ENDPOINT は host:port 形式なので挙動は変わりません。また接続は最初の RPC 時に確立されます。

Test

  • go build ./grpc-gateway/... && go vet ./grpc-gateway/... が通ることを確認
  • ローカルで backend / gateway を起動し、README のリクエストがすべて 200 を返すことを確認
    • GET /alive, GET /user/100, GET /user?group=ADMIN, PUT /user/100 (backend 側で update body のログ出力も確認)
  • fix(grpc-gateway): update Dockerfiles to Go 1.25 multi-stage build #140 (Dockerfile 修正) と同じ Makefile を触っていますが、git merge-tree でコンフリクトしないことを確認済み

🤖 Generated with Claude Code

Remove Gopkg.toml/Gopkg.lock and the `dep ensure` Makefile target,
which are leftovers from before the move to Go modules. Replace the
deprecated grpc.Dial and grpc.WithInsecure in the gateway with
grpc.NewClient and insecure credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jun06t
jun06t merged commit 5153020 into master Oct 6, 2026
1 check passed
@jun06t
jun06t deleted the chore/grpc-gateway-cleanup branch October 6, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant