windmill icon indicating copy to clipboard operation
windmill copied to clipboard

feature: Unable to infer lockfile of inline scripts from requirements.txt

Open st1020 opened this issue 7 months ago • 2 comments

As the documentation states: "When doing wmill script generate-metadata, if a requirements.txt is discovered, the closest one will be used as source-of-truth instead of being discovered from the imports in the script directly to generate the lockfile from the server."

But, when doing wmill flow generate-locks, the lockfiles of inline script always inferred from imports. And I didn't find a way to infer lockfile of inline scripts from requirements.txt.

I think we should make wmill flow generate-locks have the same behavior as wmill script generate-metadata in lockfile inference. Or at least should provide a way to infer lockfile of inline scripts from requirements.txt.

Thanks.

st1020 avatar May 31 '25 16:05 st1020

Noted, it's part of our backlog as we put a strong focus on local development this quarter and the next

rubenfiszel avatar Jun 01 '25 08:06 rubenfiszel

Ok, can I overwrite lockfile directly as a temporary solution?

st1020 avatar Jun 01 '25 08:06 st1020