lemon-helicopter-7340903/07/2023, 10:39 PM
alert-dawn-5142503/07/2023, 10:58 PM
few-arm-9306503/07/2023, 11:00 PM
, but pants ends up running tests for every resolve. We really only need to run them once.
witty-laptop-3734303/07/2023, 11:03 PM
./pants test t.py -- --name "Ben" --age 30 --year 2017
alert-dawn-5142503/07/2023, 11:07 PM
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-7340903/07/2023, 11:20 PM
The code can be found in my pants playground located here: https://github.com/xuru/monolith-to-monorepo/tree/pants_baseline
╰─ pants lint mtom 17:18:07.38 [ERROR] 1 Exception encountered: Exception: Unmatched glob from the option `[black].lockfile`: ".build-support/black.lockfile"
abundant-autumn-6799803/07/2023, 11:45 PM
cool-yacht-3712803/07/2023, 11:46 PM
? Seems like it doesn’t infer the codgen’d go package dependency and explicitly stating the dependency doesn’t work either
blue-football-9256003/08/2023, 1:55 AM
gentle-gigabyte-5211503/08/2023, 10:00 AM
Failed 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-1669303/08/2023, 10:07 AM
What 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!,
coursierdo and download and install the Go SDK into a Pants-managed directory.
brave-hair-40203/08/2023, 11:34 AM
But when I run
, 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?
pants -ldebug I get package ::
thousands-plumber-3325503/08/2023, 3:50 PM
no matter what command I am running. Ideas? I already tried
/tmp/pants-sandbox-NXZ1ts/./django.pex_pex_shim.sh: 2: set: Illegal option -o pipefail
lemon-helicopter-7340903/08/2023, 4:55 PM
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!
ImportError: 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.
purple-plastic-5780103/08/2023, 5:43 PM
purple-plastic-5780103/08/2023, 9:15 PM
This is telling me that I need a list of strings.. =/
resources( name="foo" sources=[http_source(...),http_source(...)] )
purple-plastic-5780103/08/2023, 10:56 PM
purple-plastic-5780103/08/2023, 11:32 PM
Are the same label, as bazel knows where I am..
thing = ":bar" thing2 = "//foo:bar"
purple-plastic-5780103/09/2023, 1:21 AM
fancy-daybreak-6234803/09/2023, 1:30 AM
purple-plastic-5780103/09/2023, 2:07 AM
purple-plastic-5780103/09/2023, 3:29 AM
brave-hair-40203/09/2023, 11:23 AM
green-tiger-1767203/09/2023, 3:41 PM
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?
09: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==126.96.36.199, 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==188.8.131.52, 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.
lemon-helicopter-7340903/09/2023, 4:53 PM
Somehow pytest-django can’t figure out where
ImportError: 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.
is? Any help is appreciated!
ambitious-xylophone-577203/09/2023, 6:03 PM
flaky-battery-65503/09/2023, 6:46 PM
jolly-kite-5335603/10/2023, 1:16 AM
it seems like the
./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
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.