Skip to content

Commit 0ac5221

Browse files
committed
chore: pin various dependencies in CI files
1 parent 8340567 commit 0ac5221

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ jobs:
860860
run: |
861861
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
862862
go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.34
863-
go install golang.org/x/tools/cmd/goimports@latest
863+
go install golang.org/x/tools/cmd/goimports@v0.31.0
864864
go install github.com/mikefarah/yq/v4@v4.44.3
865865
go install go.uber.org/mock/mockgen@v0.5.0
866866

dogfood/coder/Dockerfile

+11-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN apt-get update && \
3434
# go-swagger tool to generate the go coder api client
3535
go install github.com/go-swagger/go-swagger/cmd/swagger@v0.28.0 && \
3636
# goimports for updating imports
37-
go install golang.org/x/tools/cmd/goimports@v0.1.7 && \
37+
go install golang.org/x/tools/cmd/goimports@v0.31.0 && \
3838
# protoc-gen-go is needed to build sysbox from source
3939
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30 && \
4040
# drpc support for v2
@@ -45,7 +45,7 @@ RUN apt-get update && \
4545
go install github.com/goreleaser/goreleaser@v1.6.1 && \
4646
# Install the latest version of gopls for editors that support
4747
# the language server protocol
48-
go install golang.org/x/tools/gopls@latest && \
48+
go install golang.org/x/tools/gopls@v0.18.1 && \
4949
# gotestsum makes test output more readable
5050
go install gotest.tools/gotestsum@v1.9.0 && \
5151
# goveralls collects code coverage metrics from tests
@@ -84,7 +84,8 @@ RUN apt-get update && \
8484
rm -rf /tmp/go/pkg && \
8585
rm -rf /tmp/go/src
8686

87-
FROM gcr.io/coder-dev-1/alpine:3.18 as proto
87+
# alpine:3.18
88+
FROM gcr.io/coder-dev-1/alpine@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 AS proto
8889
WORKDIR /tmp
8990
RUN apk add curl unzip
9091
RUN curl -L -o protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-linux-x86_64.zip && \
@@ -232,18 +233,22 @@ RUN DOCTL_VERSION=$(curl -s "https://api.github.com/repos/digitalocean/doctl/rel
232233
tar xf doctl.tar.gz -C /usr/local/bin doctl && \
233234
rm doctl.tar.gz
234235

236+
ARG NVM_INSTALL_SHA=bdea8c52186c4dd12657e77e7515509cda5bf9fa5a2f0046bce749e62645076d
235237
# Install frontend utilities
236238
ENV NVM_DIR=/usr/local/nvm
237239
ENV NODE_VERSION=20.16.0
238240
RUN mkdir -p $NVM_DIR
239-
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
241+
RUN curl -o nvm_install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh && \
242+
echo "${NVM_INSTALL_SHA} nvm_install.sh" | sha256sum -c && \
243+
bash nvm_install.sh && \
244+
rm nvm_install.sh
240245
RUN source $NVM_DIR/nvm.sh && \
241246
nvm install $NODE_VERSION && \
242247
nvm use $NODE_VERSION
243248
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
244249
# Allow patch updates for npm and pnpm
245-
RUN npm install -g npm@^10.8
246-
RUN npm install -g pnpm@^9.6
250+
RUN npm install -g npm@10.8.1
251+
RUN npm install -g pnpm@9.15.1
247252

248253
RUN pnpx playwright@1.47.0 install --with-deps chromium
249254

0 commit comments

Comments
 (0)