make error
supery-chen opened this issue · comments
superychen commented
Bug Report
What did you do?
compile from the sources
What did you expect to see?
compile success and get binary
What did you see instead? Under which circumstances?
$ sudo make
>> checking code style
>> checking license header
mkdir -p /opt/go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh \
| sed -e '/install -d/d' \
| sh -s -- -b /opt/go/bin v1.45.2
golangci/golangci-lint info checking GitHub for tag 'v1.45.2'
golangci/golangci-lint crit unable to find 'v1.45.2' - use 'latest' or see https://github.com/golangci/golangci-lint/releases for details
make: *** [/opt/go/bin/golangci-lint] Error 1
Environment
- System information:
Linux 3.10.0-1160.31.1.el7.x86_64 x86_64
- Golang version:
go version go1.18.3 linux/amd64
- Pushgateway version:
v1.4.3
superychen commented
It's ok now. Is it a network issue above?
$ sudo make
>> checking code style
>> checking license header
mkdir -p /opt/go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh \
| sed -e '/install -d/d' \
| sh -s -- -b /opt/go/bin v1.45.2
golangci/golangci-lint info checking GitHub for tag 'v1.45.2'
golangci/golangci-lint info found version: 1.45.2 for v1.45.2/linux/amd64
golangci/golangci-lint info installed /opt/go/bin/golangci-lint
>> running golangci-lint
GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
GO111MODULE=on /opt/go/bin/golangci-lint run ./...
>> running yamllint on all YAML files in the repository
yamllint .
>> running check for unused/missing packages in go.mod
GO111MODULE=on go mod tidy
curl -s -L https://github.com/prometheus/promu/releases/download/v0.13.0/promu-0.13.0.linux-amd64.tar.gz | tar -xvzf - -C /tmp/tmp.nL2Wdi1UiX
promu-0.13.0.linux-amd64/
promu-0.13.0.linux-amd64/LICENSE
promu-0.13.0.linux-amd64/NOTICE
promu-0.13.0.linux-amd64/promu
mkdir -p /opt/go/bin
cp /tmp/tmp.nL2Wdi1UiX/promu-0.13.0.linux-amd64/promu /opt/go/bin/promu
rm -r /tmp/tmp.nL2Wdi1UiX
>> building binaries
GO111MODULE=on /opt/go/bin/promu build --prefix /home/vscode/projects/pushgateway
> pushgateway
>> running all tests
GO111MODULE=on go test -race ./...
? github.com/prometheus/pushgateway [no test files]
ok github.com/prometheus/pushgateway/api/v1 0.068s
? github.com/prometheus/pushgateway/asset [no test files]
ok github.com/prometheus/pushgateway/handler 0.093s
ok github.com/prometheus/pushgateway/storage 0.205s
? github.com/prometheus/pushgateway/testutil [no test files]