lemon-helicopter-73409
03/07/2023, 10:39 PMalert-dawn-51425
03/07/2023, 10:58 PMfew-arm-93065
03/07/2023, 11:00 PMparametrize
, but pants ends up running tests for every resolve. We really only need to run them once.witty-laptop-37343
03/07/2023, 11:03 PM./pants test t.py -- --name "Ben" --age 30 --year 2017
?alert-dawn-51425
03/07/2023, 11:07 PMpylint-pytest
when there is two different source roots with python in it. When i restrict the glob to just a single one of the sources, it passes, but it fails when both run.lemon-helicopter-73409
03/07/2023, 11:20 PMā°ā pants lint mtom
17:18:07.38 [ERROR] 1 Exception encountered:
Exception: Unmatched glob from the option `[black].lockfile`: ".build-support/black.lockfile"
The code can be found in my pants playground located here: https://github.com/xuru/monolith-to-monorepo/tree/pants_baselineabundant-autumn-67998
03/07/2023, 11:45 PMcool-yacht-37128
03/07/2023, 11:46 PMvcs_version
with go_package
? Seems like it doesnāt infer the codgenād go package dependency and explicitly stating the dependency doesnāt work eitherblue-football-92560
03/08/2023, 1:55 AM{pants.hash}
?gentle-gigabyte-52115
03/08/2023, 10:00 AMFailed to resolve compatible artifacts from lock pants-utils/3rdparty/python/python_ubuntu_lockfile.lock for 1 target:
1. /home/azureuser/.pyenv/versions/3.9.12/bin/python3.9:
Failed to resolve all requirements for cp39-cp39-manylinux_2_31_x86_64 interpreter at /home/azureuser/.pyenv/versions/3.9.12/bin/python3.9 from pants-utils/3rdparty/python/python_ubuntu_lockfile.lock:
Configured with:
build: True
use_wheel: True
Dependency on scipy not satisfied, 1 incompatible candidate found:
1.) scipy 1.10.1 does not satisfy the following requirements:
<1.9.2,>=1.8 (via: scikit-image<1.0.0,>=0 -> scipy<1.9.2,>=1.8; python_version <= "3.9")
nice-park-16693
03/08/2023, 10:07 AMWhat did you want to know specifically about the Go support?What interests me here really is what the future might hold for Go toolchain management by Pants. It seems like this might be the answer, which seems like it gives parity with what Please currently does:
I wanted the Go backend to just have an equivalent to whatCorrect me if I'm misinterpreting what you've said, but otherwise this seems promising and thanks for the responses!,pyenv
, andcoursier
do and download and install the Go SDK into a Pants-managed directory.asdf
brave-hair-402
03/08/2023, 11:34 AM[docker]
env_vars=["DOCKER_HOST"]
But when I run pants -ldebug I get package ::
, I see in the logs an entry which seems to show the environmental variables passed to the sandbox, but DOCKER_HOST is not there (the full log entry is in the thread). Do I need to do anything else to pass it through?thousands-plumber-33255
03/08/2023, 3:50 PM/tmp/pants-sandbox-NXZ1ts/./django.pex_pex_shim.sh: 2: set: Illegal option -o pipefail
no matter what command I am running. Ideas? I already tried --no-pantsd --no-local-cache
. Using 2.15
.lemon-helicopter-73409
03/08/2023, 4:55 PMImportError: No module named 'config.settings'
pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.
Here is the repo in question: https://github.com/xuru/monolith-to-monorepo/tree/pants_baseline
If anyone could give me some pointers on how to make this work, I would much appreciate it!purple-plastic-57801
03/08/2023, 5:43 PMpurple-plastic-57801
03/08/2023, 9:15 PMresources(
name="foo"
sources=[http_source(...),http_source(...)]
)
This is telling me that I need a list of strings.. =/purple-plastic-57801
03/08/2023, 10:56 PMpurple-plastic-57801
03/08/2023, 11:32 PMthing = ":bar"
thing2 = "//foo:bar"
Are the same label, as bazel knows where I am..purple-plastic-57801
03/09/2023, 1:21 AMfancy-daybreak-62348
03/09/2023, 1:30 AMpurple-plastic-57801
03/09/2023, 2:07 AMpurple-plastic-57801
03/09/2023, 3:29 AMdist/codegen
? š¤brave-hair-402
03/09/2023, 11:23 AMgreen-tiger-17672
03/09/2023, 3:41 PM09:36:02.92 [INFO] Scheduler initialized.
09:36:05.09 [INFO] Preserving local process execution dir /private/var/folders/8b/_mfgyxjj7wg972pfzn9rqnw40000gn/T/pants-sandbox-5BvC0E for Building 7 requirements for requirements.pex from the python-default.lock resolve: SQLAlchemy==1.4, loguru==0.6.0, psycopg2-binary==2.9.5, requests==2.27.1, sqlalchemy-stubs==0.4, types-requests==2.28.11.2, typing_extensions==4.4.0
09:36:05.09 [INFO] Completed: Building 7 requirements for requirements.pex from the python-default.lock resolve: SQLAlchemy==1.4, loguru==0.6.0, psycopg2-binary==2.9.5, requests==2.27.1, sqlalchemy-stubs==0.4, types-requests==2.28... (31 characters truncated)
09:36:05.09 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building 7 requirements for requirements.pex from the python-default.lock resolve: SQLAlchemy==1.4, loguru==0.6.0, psycopg2-binary==2.9.5, requests==2.27.1, sqlalchemy-stubs==0.4, types-requests==2.28.11.2, typing_extensions==4.4.0' failed with exit code 1.
stdout:
stderr:
There was 1 error downloading required artifacts:
1. psycopg2-binary 2.9.5 from <https://files.pythonhosted.org/packages/8c/45/77147700f5088efaf9235a3a62b611b594d477a5c5613b5316d0ebd18be0/psycopg2-binary-2.9.5.tar.gz>
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Im currently on an M1 mac and this error presented itself after pulling down code from another colleague, however there were no major code changes. Has anyone encountered this before?lemon-helicopter-73409
03/09/2023, 4:53 PMImportError: No module named 'config'
pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.
Somehow pytest-django canāt figure out where config/settings
is? Any help is appreciated!ambitious-xylophone-5772
03/09/2023, 6:03 PMflaky-battery-655
03/09/2023, 6:46 PMwide-midnight-78598
03/09/2023, 8:46 PMbusy-vase-39202
03/09/2023, 8:46 PMjolly-kite-53356
03/10/2023, 1:16 AM./pants run --debug-adapter
17:15:06.43 [ERROR] 1 Exception encountered:
NoApplicableTargetsException: No files or targets specified. The `run` goal works with these target types:
* docker_image
* pex_binary
* python_source
* python_test
it seems like the pex_binary
is supported, but when I actually run the command with a pex_binary target, I got this error
Debugging a `pex_binary` using a debug adapter has not yet been implemented.