mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
6dce34ac32
* Initial recsplit * Move licence * Fix bucket count and key count * Check for duplicate kwys * More recsplit implementation * Skeleton of recsplit, fuzz test * Fix lint Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local> Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
// +build tools
|
|
|
|
/*
|
|
Copyright 2021 Erigon contributors
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package tools
|
|
|
|
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
|
//
|
|
// This module is just a hack for 'go mod tidy' command
|
|
//
|
|
// Problem is - 'go mod tidy' removes from go.mod file lines if you don't use them in source code
|
|
//
|
|
// But code generators we use as binaries - not by including them into source code
|
|
// To provide reproducible builds - go.mod file must be source of truth about code generators version
|
|
// 'go mod tidy' will not remove binary deps from go.mod file if you add them here
|
|
//
|
|
// use `make devtools` - does install all binary deps of right version
|
|
|
|
// build tag 'trick_go_mod_tidy' - is used to hide warnings of IDEA (because we can't import `main` packages in go)
|
|
|
|
import (
|
|
_ "github.com/matryer/moq"
|
|
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
|
|
)
|