Skip to content

Commit

Permalink
chore: pin go tools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Aug 13, 2024
1 parent 7a63a7e commit b970982
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit b970982

Please sign in to comment.