Skip to content

Commit

Permalink
remove uv.lock from source control
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth committed Dec 4, 2024
1 parent 756e6ec commit 8acf846
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 324 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ out/

# VS Code
.vscode/

# https://docs.astral.sh/uv/concepts/projects/layout/#the-lockfile
# we go against the recommended best practice and don't add it to source control:
# - adds too much noise
# - adds friction to CI
# (at the cost of reproducible builds)
uv.lock
6 changes: 4 additions & 2 deletions packages/halmos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ ENV PATH="/halmos/bin:$PATH" \
UV_PYTHON_DOWNLOADS=never \
UV_LINK_MODE=copy

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

# Install halmos, assuming it is checked out in the current host directory
# --locked is used to avoid updating uv.lock, and instead fails if the lockfile is out of date
# we don't specify --frozen or --locked because we don't check in uv.lock
RUN --mount=type=bind,source=../..,target=/src,readonly=false \
cd /src && \
uv sync --locked --extra dev --no-editable
uv sync --extra dev --no-editable

# Set a nicer prompt
ENV IMAGE_NAME=halmos
Expand Down
Loading

0 comments on commit 8acf846

Please sign in to comment.