sysinfo
sysinfo copied to clipboard
si.getKernelInfo undefined
go version go1.21.4 linux/amd64
set -e;\
source ./env/stage; \
while read spec; \
do\
distro=$(echo ${spec} | cut -d/ -f1);\
goarch=$(echo ${spec} | cut -d/ -f2);\
arch=$(echo ${goarch} | sed 's/386/x86_32/g; s/amd64/x86_64/g; s/arm$/arm32/g');\
echo $distro/$arch;\
mkdir -p dist/$distro/$arch;\
CGO_ENABLED=0 GOOS=$distro GOARCH=$goarch /usr/local/go/bin/go build -ldflags "-X github.com/aziontech/azion-cli/pkg/cmd/version.BinVersion=1.[10](https://github.com/aziontech/azion/actions/runs/7094224353/job/19309114535#step:10:11).1-dev.1 -X github.com/aziontech/azion-cli/pkg/constants.StorageApiURL=$STORAGE_URL -X github.com/aziontech/azion-cli/pkg/constants.AuthURL=$AUTH_URL -X github.com/aziontech/azion-cli/pkg/constants.ApiURL=$API_URL -X github.com/aziontech/azion-cli/pkg/cmd/edge_applications/init.TemplateBranch=$TEMPLATE_BRANCH -X github.com/aziontech/azion-cli/pkg/cmd/edge_applications/init.TemplateMajor=$TEMPLATE_MAJOR" -o ./dist/$distro/$arch/azion-1.10.1-dev.1 ./cmd/azion; \
done < BUILD
darwin/x86_64
darwin/arm64
freebsd/x86_64
# github.com/zcalusic/sysinfo
/go/pkg/mod/github.com/zcalusic/[email protected]/sysinfo.go:[13](https://github.com/aziontech/azion/actions/runs/7094224353/job/19309114535#step:10:14):10: undefined: Kernel
/go/pkg/mod/github.com/zcalusic/[email protected]/sysinfo.go:48:5: si.getKernelInfo undefined (type *SysInfo has no field or method getKernelInfo)
make: *** [Makefile:97: cross-build] Error 1
I'm getting this error on my action while building my binary for different platforms.
No updates on this?