エラー内容
C:\Users\user\go\pkg\mod\github.com\gin-gonic\gin@v1.7.7\binding\protobuf.go:11:2: missing go.sum entry for module providing package github.com/golang/protobuf/proto (imported by github.com/gin-gonic/gin/binding); to add:
go get github.com/gin-gonic/gin/binding@v1.7.7
C:\Users\user\go\pkg\mod\github.com\gin-gonic\gin@v1.7.7\binding\yaml.go:12:2: missing go.sum entry for module providing package gopkg.in/yaml.v2 (imported by github.com/gin-gonic/gin/binding); to add:
go get github.com/gin-gonic/gin/binding@v1.7.7
環境
- GoLand 2024.1.3
- github.com/gin-gonic/gin@v1.7.7
解決策
1.依存関係をアップデートする
go get github.com/gin-gonic/gin@v1.7.7
2.依存関係を整理する
go mod tidy