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>
17 lines
430 B
Go
17 lines
430 B
Go
//go:build appengine
|
|
// +build appengine
|
|
|
|
// This file contains the safe implementations of otherwise unsafe-using code.
|
|
|
|
package xxhash
|
|
|
|
// Sum64String computes the 64-bit xxHash digest of s with a zero seed.
|
|
func Sum64String(s string) uint64 {
|
|
return Sum64([]byte(s))
|
|
}
|
|
|
|
// WriteString adds more data to d. It always returns len(s), nil.
|
|
func (d *Digest) WriteString(s string) (n int, err error) {
|
|
return d.Write([]byte(s))
|
|
}
|