Skip to content

Commit

Permalink
Upgrade golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Mar 22, 2022
1 parent 4653f7a commit 3ff4a89
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions 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
Expand All @@ -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
14 changes: 14 additions & 0 deletions 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
Expand Down

0 comments on commit 3ff4a89

Please sign in to comment.