acceptable-guitar-79854
09/08/2020, 8:40 PMhundreds-father-404
09/08/2020, 8:54 PMhundreds-breakfast-49010
09/08/2020, 8:57 PMacceptable-guitar-79854
09/08/2020, 9:02 PMhundreds-breakfast-49010
09/08/2020, 9:02 PMhundreds-father-404
09/08/2020, 9:03 PMIn general, it sounds like network requests don’t work without both those env vars set, right?For example, try doing
pip install flake8
without the env vars setacceptable-guitar-79854
09/08/2020, 9:03 PMacceptable-guitar-79854
09/08/2020, 9:04 PMacceptable-guitar-79854
09/08/2020, 9:04 PMacceptable-guitar-79854
09/08/2020, 9:06 PMhundreds-father-404
09/08/2020, 9:06 PMhttp_proxy
and https_proxy
, with the ability to override if you want. We do that for CPPFLAGS
, LDFLAGS
, LC_ALL
, and LANG
, as those are very frequently needed.
Generally, we’ve been erring on the more conservative side, as it’s harder for us to take away a feature than to add it.acceptable-guitar-79854
09/08/2020, 9:07 PMacceptable-guitar-79854
09/08/2020, 9:07 PMhundreds-father-404
09/08/2020, 9:08 PMacceptable-guitar-79854
09/08/2020, 9:09 PMacceptable-guitar-79854
09/08/2020, 9:12 PMacceptable-guitar-79854
09/08/2020, 9:13 PMhundreds-breakfast-49010
09/08/2020, 9:14 PMhundreds-father-404
09/08/2020, 9:16 PMtheir syntax for marking sources is horrible so action-env saved me from that pain by just setting PYTHONPATHEr, this is the type of thing that is hard for us to reason about and what gives us pause with arbitrary env vars. I have a feeling we are going to end up needing this mechanism, but I think for now, stay conservative by only handling those 3 env vars. Opened https://github.com/pantsbuild/pants/issues/10746. Thank you for reporting this! Let us know if we can help with anything else or any feedback 🙂 We’re trying to make 2.0 be really polished and helpful for users.
acceptable-guitar-79854
09/08/2020, 9:17 PMacceptable-guitar-79854
09/08/2020, 9:17 PMhundreds-father-404
09/08/2020, 9:17 PMacceptable-guitar-79854
09/08/2020, 9:32 PMacceptable-guitar-79854
09/08/2020, 9:33 PMacceptable-guitar-79854
09/08/2020, 9:34 PMacceptable-guitar-79854
09/08/2020, 9:34 PMacceptable-guitar-79854
09/08/2020, 9:34 PMacceptable-guitar-79854
09/08/2020, 9:34 PMacceptable-guitar-79854
09/08/2020, 9:35 PMacceptable-guitar-79854
09/08/2020, 9:36 PMhundreds-father-404
09/08/2020, 9:36 PM[GLOBAL]
build_patterns = ["BUILD", "BUILD.*"]
This will work with BUILD.pants
as is. If you want to enforce only BUILD.pants
, change to build_patterns = ["BUILD.pants"]
acceptable-guitar-79854
09/08/2020, 9:37 PMacceptable-guitar-79854
09/08/2020, 9:37 PMacceptable-guitar-79854
09/08/2020, 9:41 PMhundreds-father-404
09/08/2020, 9:43 PMmypy stubs and mypy plugins were pretty tricky tooOof. I’ve literally been working on improving our MyPy implementation all day. It’s so confusing. Pants does not currently support MyPy plugins, but we did with the old v1 engine, so we know it is possible of course.
acceptable-guitar-79854
09/08/2020, 9:45 PMacceptable-guitar-79854
09/08/2020, 9:46 PMhundreds-father-404
09/08/2020, 9:49 PM.pyi
files? That’s one of the simple fixes I think we can make. Right now, Python targets like python_library
validate that the file ends in .py
.
I think we should loosen it to allow .pyi
, but I wanted to talk through with someone using stubs if they think it makes sense to have in python_library
rather than a dedicated python_type_stubs
target. I don’t think we would handle the stubs any differently; it’s more about the BUILD file modeling things better afaict.
But that also is clunky - we made a huge effort in 2.0 to cut down on boilerplate by adding dependency inference, for exampleacceptable-guitar-79854
09/08/2020, 9:51 PMacceptable-guitar-79854
09/08/2020, 9:51 PMhundreds-father-404
09/08/2020, 9:53 PMacceptable-guitar-79854
09/08/2020, 9:54 PMacceptable-guitar-79854
09/08/2020, 9:57 PMacceptable-guitar-79854
09/08/2020, 10:01 PMhundreds-father-404
09/09/2020, 6:10 AMacceptable-guitar-79854
09/09/2020, 9:21 AMwooden-thailand-8386
09/09/2020, 12:45 PM# export no_proxy='*'
acceptable-guitar-79854
09/09/2020, 5:45 PMacceptable-guitar-79854
09/09/2020, 5:45 PMhundreds-father-404
09/09/2020, 5:46 PMacceptable-guitar-79854
09/09/2020, 5:46 PMacceptable-guitar-79854
09/09/2020, 5:47 PMhappy-kitchen-89482
09/09/2020, 5:48 PMca_requests_bundle
? Is it a .pem file with several concatenated certificates?wooden-thailand-8386
09/09/2020, 5:53 PMhappy-kitchen-89482
09/09/2020, 5:54 PMwooden-thailand-8386
09/09/2020, 5:55 PMhundreds-father-404
09/09/2020, 9:15 PMacceptable-guitar-79854
09/09/2020, 9:30 PM