GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
pulumi.FileAsset currently only supports strings, not pathlib.Path or anything else bearing __fspath__().
Thanks for opening this! If you're interested, we'd be happy to accept a PR.
@ellismg any issue with me picking this up?
In case you hadn't already found it - the relevant source code is at
Lines 35 to 43
And there are some tests at
Lines 25 to 27
Update python FileAsset to accept os.PathLike in addition to str.
This should fix pulumi#2896.
Update python FileAsset to accept os.PathLike in addition to str. (#3368
This should fix #2896.