Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pin go tools versions #4251

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/build-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ runs:
shell: bash
- name: Install staticchecker
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install honnef.co/go/tools/cmd/staticcheck@latest
GOROOT=/usr/local/go GOPATH=$HOME/go go install honnef.co/go/tools/cmd/staticcheck@2023.1.7
sudo cp $HOME/go/bin/staticcheck /usr/bin/
shell: bash
- name: Install revive
Expand All @@ -81,12 +81,12 @@ runs:
shell: bash
- name: Install goimports-reviser
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/incu6us/goimports-reviser/v3@latest
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/incu6us/goimports-reviser/v3@v3.6.5
sudo cp $HOME/go/bin/goimports-reviser /usr/bin/
shell: bash
- name: Install errcheck
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/kisielk/errcheck@latest
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/kisielk/errcheck@v1.7.0
sudo cp $HOME/go/bin/errcheck /usr/bin/
shell: bash
- name: Install docker
Expand Down
2 changes: 1 addition & 1 deletion builder/Dockerfile.alpine-tracee-make
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RUN apk --no-cache add man-pages man-pages-posix bash-completion vim && \
# install staticcheck

RUN GOROOT=/usr/lib/go GOPATH=$HOME/go \
go install honnef.co/go/tools/cmd/staticcheck@latest && \
go install honnef.co/go/tools/cmd/staticcheck@2023.1.7 && \
cp $HOME/go/bin/staticcheck /usr/bin/

# install goimports-reviser
Expand Down
6 changes: 3 additions & 3 deletions builder/Dockerfile.ubuntu-tracee-make
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
# install staticcheck

RUN GOROOT=/usr/local/go GOPATH=$HOME/go \
go install honnef.co/go/tools/cmd/staticcheck@latest && \
go install honnef.co/go/tools/cmd/staticcheck@2023.1.7 && \
cp $HOME/go/bin/staticcheck /usr/bin/

# install goimports-reviser

RUN GOROOT=/usr/local/go GOPATH=$HOME/go \
go install github.com/incu6us/goimports-reviser/v3@latest && \
go install github.com/incu6us/goimports-reviser/v3@v3.6.5 && \
cp $HOME/go/bin/goimports-reviser /usr/bin/

# install revive
Expand All @@ -101,7 +101,7 @@ RUN GOROOT=/usr/local/go GOPATH=$HOME/go \
# install errcheck

RUN GOROOT=/usr/local/go GOPATH=$HOME/go \
go install github.com/kisielk/errcheck@latest && \
go install github.com/kisielk/errcheck@v1.7.0 && \
cp $HOME/go/bin/errcheck /usr/bin/

USER tracee
Expand Down
Loading