mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
Deprecate pb.gw.go files (#14464)
* Clean pb.gw.go files * Deprecate pb.gw.go file support
This commit is contained in:
@@ -26,7 +26,6 @@ approval_rules:
|
|||||||
only_changed_files:
|
only_changed_files:
|
||||||
paths:
|
paths:
|
||||||
- "*pb.go"
|
- "*pb.go"
|
||||||
- "*pb.gw.go"
|
|
||||||
- "*.bazel"
|
- "*.bazel"
|
||||||
options:
|
options:
|
||||||
ignore_commits_by:
|
ignore_commits_by:
|
||||||
@@ -69,7 +68,6 @@ approval_rules:
|
|||||||
changed_files:
|
changed_files:
|
||||||
ignore:
|
ignore:
|
||||||
- "*pb.go"
|
- "*pb.go"
|
||||||
- "*pb.gw.go"
|
|
||||||
- "*.bazel"
|
- "*.bazel"
|
||||||
options:
|
options:
|
||||||
ignore_commits_by:
|
ignore_commits_by:
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ This subproject contains useful bash scripts for working with our repository. We
|
|||||||
|
|
||||||
## update-go-pbs.sh
|
## update-go-pbs.sh
|
||||||
|
|
||||||
This script generates the *.pb.go and *.pb.gw.go files from the *.proto files.
|
This script generates the *.pb.go files from the *.proto files.
|
||||||
After running `update-go-pbs.sh` keep only the *.pb.go and *pb.gw.go for the protos that have changed before checking in.
|
After running `update-go-pbs.sh` keep only the *.pb.go for the protos that have changed before checking in.
|
||||||
*Note*: the generated files may not have imports correctly linted and will need to be fixed to remote associated errors.
|
*Note*: the generated files may not have imports correctly linted and will need to be fixed to remote associated errors.
|
||||||
@@ -19,7 +19,7 @@ cygwin*) system="windows" ;;
|
|||||||
esac
|
esac
|
||||||
readonly system
|
readonly system
|
||||||
|
|
||||||
# Get locations of pb.go and pb.gw.go files.
|
# Get locations of pb.go files.
|
||||||
findutil="find"
|
findutil="find"
|
||||||
# On OSX `find` is not GNU find compatible, so require "findutils" package.
|
# On OSX `find` is not GNU find compatible, so require "findutils" package.
|
||||||
if [ "$system" == "darwin" ]; then
|
if [ "$system" == "darwin" ]; then
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ bazel query 'attr(testonly, 0, //proto/...)' | xargs bazel build $@
|
|||||||
file_list=()
|
file_list=()
|
||||||
while IFS= read -d $'\0' -r file; do
|
while IFS= read -d $'\0' -r file; do
|
||||||
file_list=("${file_list[@]}" "$file")
|
file_list=("${file_list[@]}" "$file")
|
||||||
done < <($findutil -L "$(bazel info bazel-bin)"/proto -type f -regextype sed -regex ".*pb\.\(gw\.\)\?go$" -print0)
|
done < <($findutil -L "$(bazel info bazel-bin)"/proto -type f -regextype sed -regex ".*pb\.go$" -print0)
|
||||||
|
|
||||||
arraylength=${#file_list[@]}
|
arraylength=${#file_list[@]}
|
||||||
searchstring="prysmaticlabs/prysm/v5/"
|
searchstring="prysmaticlabs/prysm/v5/"
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -3,9 +3,10 @@ package eth
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
"math/bits"
|
"math/bits"
|
||||||
|
|
||||||
|
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
||||||
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/eth/v1"
|
v1 "github.com/prysmaticlabs/prysm/v5/proto/eth/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
//go:build ignore
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package ignore
|
|
||||||
Reference in New Issue
Block a user