Skip to content

Commit

Permalink
Add references on syncing dependencies with Hatch
Browse files Browse the repository at this point in the history
Hatch does not have a direct command for syncing dependencies, and
`hatch env create` won't always sync dependencies if they're being
installed into the same virtual environment directory (as they would be
in a Docker image). `hatch env prune && hatch env create <env_name>` is
the current workaround, but it looks like there's some progress being
made on this. This commit will add some links to help follow progress.

029c07f
  • Loading branch information
br3ndonland committed Jan 13, 2024
1 parent e3ad60b commit 1e9512a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ The _Dockerfile_ could look like this:

Hatch does not have a direct command for syncing dependencies, and `hatch env create` won't always sync dependencies if they're being installed into the same virtual environment directory (as they would be in a Docker image). Running `hatch env prune && hatch env create <env_name>` should do the trick.

For further info, see [pypa/hatch#650](https://github.com/pypa/hatch/issues/650) and [pypa/hatch#1094](https://github.com/pypa/hatch/pull/1094).

For a standard `pip` install:

- `repo/`
Expand Down

1 comment on commit 1e9512a

@vercel
Copy link

@vercel vercel bot commented on 1e9512a Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.