Hi,
I am facing the below error while building the beats repo. Please help to resolve the issue. Thanks
Error: running "go build -o build/golang-crossbuild/filebeat-linux-amd64 -buildmode pie -trimpath -tags=withjournald -ldflags -s -X github.com/elastic/beats/v7/libbeat/version.buildTime=2023-08-22T06:16:27Z -X github.com/elastic/beats/v7/libbeat/version.commit=48d71eecc46d907d0d112579d10c99b626980242" failed with exit code 1
[2023-08-22T06:16:30.050Z] Error: failed building for linux/amd64: exit status 1
[2023-08-22T06:16:30.050Z] failed building for linux/amd64: exit status 1
[2023-08-22T06:16:34.308Z] package ran for 4m33.470605524s
[2023-08-22T06:16:34.308Z] Error: running "docker run --ulimit nofile=262144:262144 --env EXEC_UID=0 --env EXEC_GID=0 -v /go/pkg/mod:/go/pkg/mod:ro --env DEV=false --rm --env GOFLAGS=-mod=readonly --env MAGEFILE_VERBOSE= --env MAGEFILE_TIMEOUT= --env SNAPSHOT=true -v /go/src/github.com/elastic/beats/v7:/go/src/github.com/elastic/beats -w /go/src/github.com/elastic/beats/filebeat docker.elastic.co/beats-dev/golang-crossbuild:1.19.12-main-debian10 --build-cmd build/mage-linux-amd64 golangCrossBuild --platforms linux/amd64" failed with exit code 1
[2023-08-22T06:16:34.308Z] make: *** [snapshot] Error 1
[2023-08-22T06:16:34.308Z] ../libbeat/scripts/Makefile:481: recipe for target 'snapshot' failed
[2023-08-22T06:16:34.308Z] cp: cannot stat '/go/src/github.com/elastic/beats/v7/filebeat/build/distributions/filebeat-oss-8.9.1-SNAPSHOT-linux-x86_64.tar.gz': No such file or directory