Skip to content

post_install hook fails when using poetry --directory #209

Closed Answered by nat-n
worldworm asked this question in Q&A
Discussion options

You must be logged in to vote

I think this might be a bug. I suspect the issue is that the poethepoet plugin naively assumes it should inherit the CWD from the poetry process here: https://github.com/nat-n/poethepoet/blob/main/poethepoet/plugin.py#L59

There is probably a way for the plugin to get from poetry that it is being run with a different directory (or rather the location of the pyproject.toml used by poetry). It'll take some fiddling to work out how. I suspect the same failure mode will occur when running a poe task directly with poetry --directory ... :(

I'll add this to my todo list, but if you want a fix soon any help working out exactly how to do this would be appreciated.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@worldworm
Comment options

Answer selected by worldworm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants