mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00

Removes gogo/protobuf from buildx and updates to a version of moby/buildkit where gogo is removed. This also changes how the proto files are generated. This is because newer versions of protobuf are more strict about name conflicts. If two files have the same name (even if they are relative paths) and are used in different protoc commands, they'll conflict in the registry. Since protobuf file generation doesn't work very well with `paths=source_relative`, this removes the `go:generate` expression and just relies on the dockerfile to perform the generation. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
15 lines
594 B
Go
15 lines
594 B
Go
// Forked from https://github.com/moby/buildkit/blob/e1b3b6c4abf7684f13e6391e5f7bc9210752687a/tools/tools.go
|
|
//go:build tools
|
|
// +build tools
|
|
|
|
// Package tools tracks dependencies on binaries not referenced in this codebase.
|
|
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
|
// Disclaimer: Avoid adding tools that don't need to be inferred from go.mod
|
|
// like golangci-lint and check they don't import too many dependencies.
|
|
package tools
|
|
|
|
import (
|
|
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
|
|
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
|
|
)
|