calm-ambulance-65371
03/03/2021, 10:49 PMException: Unmatched glob from the option `--python-setup-requirement-constraints`: "constraints.txt"
calm-ambulance-65371
03/03/2021, 10:50 PMhundreds-father-404
03/03/2021, 10:50 PM<build root>/constraints.txt
, but Pants can't find it
Do you expect that file to exist?calm-ambulance-65371
03/03/2021, 10:51 PMcalm-ambulance-65371
03/03/2021, 10:52 PMcalm-ambulance-65371
03/03/2021, 10:52 PMhundreds-father-404
03/03/2021, 10:52 PMThe constraints.txt is in the repo root, which isn't a build rootWait what do you mean? Build root == repo root, it's where the
./pants
script is located and (normally) pants.toml
calm-ambulance-65371
03/03/2021, 10:52 PMcalm-ambulance-65371
03/03/2021, 10:54 PMhundreds-father-404
03/03/2021, 10:54 PMcalm-ambulance-65371
03/03/2021, 10:54 PMhundreds-father-404
03/03/2021, 10:55 PMcalm-ambulance-65371
03/03/2021, 10:56 PMcalm-ambulance-65371
03/03/2021, 10:57 PMhundreds-father-404
03/03/2021, 10:58 PMException: Unmatched glob from the option `[python-setup].requirement-constraints`: "constraints.txt"
Does that file exist? If so, check if the file is in youror the global.gitignore
option. Refer to https://www.pantsbuild.org/docs/troubleshooting#pants-cannot-find-a-file-in-your-projectpants_ignore
calm-ambulance-65371
03/03/2021, 10:58 PMcalm-ambulance-65371
03/03/2021, 10:59 PMhundreds-father-404
03/03/2021, 11:01 PMjust "unmatched glob" could mean it expects a wildcard in the filename or somethingYeah that's correct. This is the same error message for when
sources=["bad_*.py"]
in a BUILD file, for example. So we need to use the term "glob" to be accuratecalm-ambulance-65371
03/03/2021, 11:01 PMhundreds-father-404
03/03/2021, 11:13 PM