hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Can't run pre-install-commands in detached environment

Open hoshiyosan opened this issue 1 year ago • 1 comments

I am trying to create a detached environment for CI where dependencies are pinned in a requirements file to make reproducible builds.

  • So I need to avoid installing dependencies from package metadata by adding detached = true to corresponding env.
  • But for detached env, pre-install-commands are not called, so there seems to be no way to install deps from requirements file.
  • I saw that there is a plugin to install dependencies from requirements but it can't be enabled by env and I don't want this behaviour for all my envs.

Is there a way to achieve it with hatch currently ?

hoshiyosan avatar Jul 12 '24 14:07 hoshiyosan

there is no way currently but I plan to add the same command feature as options tied to creation rather than installation

ofek avatar Jul 12 '24 14:07 ofek