...

Text file src/github.com/letsencrypt/boulder/test/boulder-tools/install-go.sh

Documentation: github.com/letsencrypt/boulder/test/boulder-tools

     1#!/bin/bash -ex
     2#
     3# Install a specific version of Go (provided by the $GO_VERSION variable)
     4# and then install some dev dependencies using that version of Go.
     5
     6arch=$(echo $TARGETPLATFORM | sed 's|\/|-|')
     7curl "https://dl.google.com/go/go${GO_VERSION}.${arch}.tar.gz" | tar -C /usr/local -xz
     8
     9# Override default GOBIN and GOCACHE
    10export GOBIN=/usr/local/bin GOCACHE=/tmp/gocache
    11
    12# Install protobuf and testing/dev tools.
    13# Note: The version of golang/protobuf is partially tied to the version of grpc
    14# used by Boulder overall. Updating it may require updating the grpc version
    15# and vice versa.
    16go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0
    17go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
    18go install github.com/rubenv/sql-migrate/...@v1.1.2
    19go install golang.org/x/tools/cmd/stringer@latest
    20go install github.com/letsencrypt/pebble/cmd/pebble-challtestsrv@master
    21go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
    22go install honnef.co/go/tools/cmd/staticcheck@2023.1.5
    23
    24go clean -cache
    25go clean -modcache

View as plain text