Skip to content

Commit

Permalink
build(core): add --frozen-lockfile flag where missing (#3609)
Browse files Browse the repository at this point in the history
* chore: add --frozen-lockfile flag in dockerfiles

This was previously omitted when we first refactored the Dockerfiles to
use pnpm but didn't have the top-level context and pnpm lock file as
yet.

* chore: add --frozen-lockfile flag in buck dev rules
  • Loading branch information
vindard authored Nov 27, 2023
1 parent 93c038e commit f386f24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/api/Dockerfile-debug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml ./

WORKDIR /app/core/api

RUN pnpm install
RUN pnpm install --frozen-lockfile

COPY ./core/api/src ./src
COPY ./core/api/test ./test
Expand Down
2 changes: 1 addition & 1 deletion core/api/Dockerfile-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml ./

WORKDIR /app/core/api

RUN pnpm install
RUN pnpm install --frozen-lockfile

COPY ./core/api/src ./src
COPY ./core/api/test ./test
Expand Down
4 changes: 2 additions & 2 deletions toolchains/workspace-pnpm/macros.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ npm_run_command="$3"
cd "$rootpath/$npm_package_path"
if [ "$install_node_modules" = "True" ]; then
pnpm install
pnpm install --frozen-lockfile
fi
if [ "${*:4}" ]; then
exec pnpm run --report-summary "$npm_run_command" -- "${@:4}"
Expand Down Expand Up @@ -1049,7 +1049,7 @@ npm_run_command="$3"
cd "$rootpath/$npm_package_path"
if [ "$install_node_modules" = "True" ]; then
pnpm install
pnpm install --frozen-lockfile
fi
exec pnpm run --report-summary "$npm_run_command"
""", is_executable = True)
Expand Down

0 comments on commit f386f24

Please sign in to comment.