mirror of
https://github.com/containerd/containerd.git
synced 2026-10-29 01:55:16 +08:00
For Go1.27 support Staticcheck analyzes only the files selected for the current OS. On macOS, unsupported-platform stubs always return errors, so SA4023 mistakes valid shared error checks for constant comparisons. The Linux and Windows implementations can still return nil. Exclude SA4023 only at the affected cross-platform call sites, keeping the check active elsewhere. Also use a single-line pipe wrapper return because Go 1.26 and Go 1.27 gofmt disagree on the multiline indentation. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
27 lines
1.0 KiB
Bash
Executable File
27 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright The containerd Authors.
|
|
|
|
# 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.
|
|
|
|
#
|
|
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
|
|
#
|
|
set -eu -o pipefail
|
|
|
|
go install github.com/containerd/protobuild/cmd/go-fix-acronym@v0.3.0
|
|
go install github.com/cpuguy83/go-md2man/v2@v2.0.7
|
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2
|
|
go install github.com/containerd/ttrpc/cmd/protoc-gen-go-ttrpc@v1.2.7
|
|
go install github.com/bufbuild/buf/cmd/buf@v1.63.0
|