You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running pants package :cloud_function gives me the following build error
A distribution for greenlet could not be resolved for /home/jackevans/.cache/nce/67912efc04f9156d8f5b48a0348983defb964de043b8c13ddc6cc8a002f8e691/cpython-3.9.18+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz/python/bin/python3.9.
Found 1 distribution for greenlet that do not apply:
1.) The wheel tags for greenlet 3.0.3 are cp311-cp311-manylinux_2_28_x86_64, cp311-cp311-manylinux_2_24_x86_64 which do not match the supported tags of /home/jackevans/.cache/nce/67912efc04f9156d8f5b48a0348983defb964de043b8c13ddc6cc8a002f8e691/cpython-3.9.18+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz/python/bin/python3.9:
cp39-cp39-manylinux_2_38_x86_64
... 809 more ...
IMO attempting to mistakenly use a resource instead of a file when loading complete_platforms should throw an error or at least show a warning when building python_google_cloud_function targets.
But would be nice if this could be turning into a warning/error.
Pants version
2.20.0 but also tested on 2.19*
OS
Both!
Additional info
An equivalent pex_binary target that uses the same complete_platform resource works. The following builds with no issues (despite :platforms being a resource).
Jackevansevo
changed the title
Using complete_platforms that loads a resource (instead of file) breaks python_google_cloud_function targets
Using complete_platforms that loads a resource (instead of file) should show an error
Apr 17, 2024
Describe the bug
repo example here: https://github.com/Jackevansevo/pants-complete-platforms-bug
Running
pants package :cloud_function
gives me the following build errorIf I use
Instead of
Inside the following
BUILD
IMO attempting to mistakenly use a
resource
instead of afile
when loadingcomplete_platforms
should throw an error or at least show a warning when buildingpython_google_cloud_function
targets.The
complete_platforms
docs stateBut would be nice if this could be turning into a warning/error.
Pants version
2.20.0 but also tested on 2.19*
OS
Both!
Additional info
An equivalent
pex_binary
target that uses the samecomplete_platform
resource works. The following builds with no issues (despite:platforms
being aresource
).The text was updated successfully, but these errors were encountered: