https://pantsbuild.org/ logo
#general
Title
# general
s

straight-alligator-54644

05/01/2023, 7:10 PM
I'm running into a pretty basic issue, maybe I misunderstand the intended usage: When I add
run_against_entire_lockfile = true
to the
pants.toml
, it seems like
pants run <myfile.py>
ends up opening an InteractiveConsole instead of running the python file. If I set to false, then using pants run does run the binary. I can repro this on the https://github.com/pantsbuild/example-python repo, by adding the above and then trying to run
pants run helloworld/main.py
.To note, if I add a pex_binary, I can run that successfully with run_against_entire_lockfile = true.
1
b

bitter-ability-32190

05/01/2023, 7:38 PM
This was fixed recently.
Lots of cherry picks, so there's likely a version of Pants that has your fix in it
s

straight-alligator-54644

05/01/2023, 7:43 PM
ah got it, thanks! 2.15.0 and 2.14.0 don't seem to have it, let me try some other versions
b

bitter-ability-32190

05/01/2023, 7:44 PM
2.15.1rc1
and
2.14.2rc1
respectively
s

straight-alligator-54644

05/01/2023, 7:46 PM
ah cool cool, 🙏
2 Views