diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18b691b846..83dbe8b556 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: run: sudo apt-get install llvm libelf-dev - name: Install golangci-lint - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.2 + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0 - name: Install gofumpt run: go install mvdan.cc/gofumpt@latest diff --git a/env.sh b/env.sh index 56199d14a1..de306d0cb5 100755 --- a/env.sh +++ b/env.sh @@ -1,4 +1,18 @@ #! /usr/bin/env bash +# Copyright (c) 2022 The Parca 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. +# + set -euo pipefail go install github.com/brancz/gojsontoyaml@latest @@ -12,3 +26,5 @@ go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest go install github.com/campoy/embedmd@latest go install mvdan.cc/gofumpt@latest + +go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.0 diff --git a/scripts/local-dev.sh b/scripts/local-dev.sh index 3bab47ecff..096738696a 100644 --- a/scripts/local-dev.sh +++ b/scripts/local-dev.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright (c) 2022 The Parca 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. +# + ################################################################################ # # This script is meant to be run from the root of this project with the Makefile