0
Help us understand the problem. What are the problem?

posted at

updated at

DockerでGolang1.16.xビルド時に`//go:build comment without // +build comment`

経緯

Docker上でgolang1.16.xを実行中にエラーが発生した

../pkg/mod/golang.org/x/tools@v0.1.10/go/internal/cgo/cgo.go:67:2: //go:build comment without // +build comment

対応

1.17.xバージョンあげたら治った。

FROM golang:1.17.9-alpine3.15

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
0
Help us understand the problem. What are the problem?