nice-florist-55958
07/21/2022, 1:48 AMhappy-kitchen-89482
07/21/2022, 2:33 AMnice-florist-55958
07/21/2022, 3:00 AMnice-florist-55958
07/21/2022, 12:32 PM./admin/tools
containing a BUILD
with shell_sources
and a symlink ./admin/tools/tools -> .
. It also doesn't matter what the name of the link is, crash is reproduced if its target is .
. Also converting the target to absolute path actually makes Pants throw an absolute symlink error.
Anyway, this is all relatively moot since the symlink is clearly pointless and made by mistake, but just FYI if you think that the circularity leading to blowup might be an issue elsewhere.happy-kitchen-89482
07/21/2022, 10:40 PMhappy-kitchen-89482
07/21/2022, 10:40 PMhappy-kitchen-89482
07/21/2022, 11:44 PMnice-florist-55958
07/22/2022, 1:16 AMmkdir 3rdparty
echo "pandas~=1.0" >3rdparty/requirements.in
echo "python_requirements(source='<http://requirements.in|requirements.in>', resolve='python-default')" >./3rdparty/BUILD
mkdir tools
echo -e "#!/bin/bash\necho $HOME" >./tools/sometool.sh
echo "shell_sources(sources=['*.sh'])" >./tools/BUILD
ln -s . ./tools/badsymlink
pants generate-lockfiles --resolve=python-default
nice-florist-55958
07/22/2022, 1:29 AMjupyter-core
in one of my resolves and it has "pywin32>=1.0; sys_platform == \"win32\" and platform_python_implementation != \"PyPy\"",
listed in its required_dists
field. But then pex3 lock export --platform current $path_to_lockfile.json
on a Linux system exports pywin32
anyway. Is that expected behavior? I can see why it would show up in Pant's generalized lockfile (from which actual locks are just subsets as required to build stuff), but not Pex's given a specific platform option..
(3.7.5) [taymarti.ivapp1366932]> pex3 lock export --platform linux_x86_64-cp-37-cp37m 3rdparty/python/resolves/release/lockfile.json | grep pywin
pywin32==304 \
enough-analyst-54434
07/22/2022, 8:11 AMnice-florist-55958
07/22/2022, 12:19 PMwitty-crayon-22786
07/22/2022, 4:12 PMchild -> .
symlink, and follow up for more details otherwisewitty-crayon-22786
07/22/2022, 4:13 PMwitty-crayon-22786
07/22/2022, 4:15 PMnice-florist-55958
07/22/2022, 4:33 PMwitty-crayon-22786
07/22/2022, 4:52 PMwitty-crayon-22786
07/22/2022, 10:46 PMln -s .. example
, so this will be fun!witty-crayon-22786
07/22/2022, 10:46 PMwitty-crayon-22786
07/22/2022, 10:47 PM