Skip to content

Commit

Permalink
🐛 missing constraints file
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Dec 7, 2023
1 parent 6cbb581 commit 28fc402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hatch_pip_compile/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ def constraint_env(self) -> "PipCompileEnvironment":
if environment.config.get("type") != self.PLUGIN_NAME:
logger.error("The constraint environment is not a hatch-pip-compile environment.")
return self
elif not environment.dependencies:
return self
else:
try:
_ = environment.virtual_env.executables_directory
Expand Down

0 comments on commit 28fc402

Please sign in to comment.