Closed roger-duthie-pivotal closed 1 year ago
Hi @rjaduthie, thanks for the issue! I'm out of the office the next week, but I'll look at this when I get back :)
[like] Roger Duthie reacted to your message:
From: Nat Noordanus @.> Sent: Wednesday, July 26, 2023 7:09:31 PM To: nat-n/poethepoet @.> Cc: Roger Duthie @.>; Author @.> Subject: Re: [nat-n/poethepoet] Can't in-lined tasks from another file with cwd (Issue #158)
Hi @rjaduthiehttps://github.com/rjaduthie, thanks for the issue! I'm out of the office the next week, but I'll look at this when I get back :)
— Reply to this email directly, view it on GitHubhttps://github.com/nat-n/poethepoet/issues/158#issuecomment-1652346351, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBFLMSUVNT6DOUWER3572QTXSFTOXANCNFSM6AAAAAA2YXHYIE. You are receiving this because you authored the thread.Message ID: @.***>
Summary
If trying to use the syntax documented here:
... there is an exception if any tasks are defined "in-line" like:
The issue is that these tasks are loaded as strings so that on line 291
config.py
thetask_def
is a string and on line 305 there is a type error whentask_def["cwd"]
is attempted.Possible solution
To convert any string tasks to objects like:
I can create a PR at some point if you think this is: