clever-crayon-7073111/13/2022, 8:30 PM
but Pants seems to ignore them? They don't show up when I run
Is Pants filtering binary files or something?
bright-pilot-8530511/13/2022, 9:02 PM
) where I get the version from the current git tag? Is there a way to do this without writing my own plugin?
ancient-accountant-5583611/14/2022, 4:20 AM
, I can successfully connect through
./pants run --debug-adapter src/python/greeter/main.py
in Visual Studio Code. However, when I set a breakpoint on line 9 of
Python: Remote Attach
and try to visit
in my browser, the breakpoint is never activated. I see output in both my terminal and the debug console but the breakpoint is just never activated. Any help would be greatly appreciated, thanks!
dazzling-jackal-2147411/14/2022, 12:17 PM
curved-television-656811/14/2022, 3:31 PM
curved-television-656811/14/2022, 4:59 PM
config, what’s the reason for having both an
option as well as
plain-carpet-7399411/14/2022, 7:11 PM
file and added some type info for the
method. I was hoping mypy would use the def of
file and then fall back to the ones that ship with pytorch for everything else. But that doesn't appear to be the case: now it only pays attention to my .pyi file ignoring all else. Maybe this is more of a question for the mypy folks??
curved-television-656811/14/2022, 7:39 PM
rough-vase-8355311/14/2022, 7:57 PM
rule? I have a use case of running Docker on a git submodule but I'm trying to avoid modifying the code in that submodule. So my setup is in the parent directory of the submodule and looks like
Unfortunately, the Docker build isn't able to find
docker_image( name="prom-aggregation-gateway", source="feat-configurable-gauge-agg/cmd/prom-aggregation-gateway/Dockerfile", dependencies=[ ":submodule" ] ) files( name = "submodule", sources = ["./feat-configurable-gauge-agg/**"] )
FROM alpine:3.10 COPY prom-aggregation-gateway / ENTRYPOINT ["/prom-aggregation-gateway"]
refined-addition-5364411/14/2022, 8:03 PM
freezing-lamp-1212311/14/2022, 8:09 PM
ripe-cpu-8514111/14/2022, 8:43 PM
Is there something I should change?
13:08:28.42 [WARN] DEPRECATED: InteractiveProcessRequest is scheduled to be removed in version 2.15.0.dev1. Instead, use `InteractiveProcess.from_process`.
rough-vase-8355311/14/2022, 10:46 PM
rough-vase-8355311/15/2022, 12:21 AM
cool-yacht-3712811/15/2022, 8:02 AM
lemon-oxygen-7249811/15/2022, 9:08 AM
! I'm coming with an additional request 😉 I've tried pinning `pyright`'s version as follows in `pants.toml`:
But this isn't recognized:
[pyright] version = "pyright==1.1.258" lockfile = "pants_dir/3rdparty/pyright_lockfile.lock"
Am I doing something wrong or is the locking support missing? I need it because right now
→ PANTS_SHA=11b4fd412631c6315b474e49fe482dec1767cf29 ./pants check libs/geometry:: ... 10:00:25.71 [ERROR] Invalid option 'lockfile' under [pyright] in /home/churlin/dev/kaiko-eng/pants.toml 10:00:25.71 [ERROR] Invalid option 'version' under [pyright] in /home/churlin/dev/kaiko-eng/pants.toml 10:00:25.71 [ERROR] Invalid config entries detected. See log for details on which entries to update or remove.
pulls a different version of
than my regular CI and I get discrepancies 😕 I can create an issue if that would help you, let me know.
refined-addition-5364411/15/2022, 2:30 PM
was taking forever (>=10 mins) and won’t even finish. I figured it out that it’s because of adding s3fs which depends on aiobotocore. It’s the aiobotocore which has some very restrictive dependencies. How long is pants/pex supposed to keep trying? I tried it with pip and pip throws an error about this.
gorgeous-eve-1255311/15/2022, 4:53 PM
This is what I get when I try to run pants on my M1 Mac. I believe the issue might have to do with the “@” in my username since I log in using a federated account?
❯ ./pants ./pants: line 478: /Usersfirstname.lastname@example.org/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39/bin/python: No such file or directory ❯ ls -lah /Usersemail@example.com/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39/bin/python lrwxr-xr-x 1 <mailto:firstname.lastname@example.orgemail@example.com> staff 70B Nov 10 12:43 /Usersfirstname.lastname@example.org/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39/bin/python -> /Usersemail@example.com/.pyenv/versions/3.9.13/bin/python3.9 ❯ file /Usersfirstname.lastname@example.org/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39/bin/python /Usersemail@example.com/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39/bin/python: broken symbolic link to /Usersfirstname.lastname@example.org/.pyenv/versions/3.9.13/bin/python3.9
busy-vase-3920211/15/2022, 5:36 PM
ripe-cpu-8514111/15/2022, 6:57 PM
gorgeous-eve-1255311/15/2022, 7:13 PM
I have a dist folder with an isort binary, how can I configure VSCode to use that isort when formatting my code? I have it using the correct black binary, but I can’t get it to use the isort binary. This is with both the default python extension and the microsoft official isort plugin. Any ideas how to get pants and vscode to share the same isort binary?
./pants export ::
rapid-bird-7930011/15/2022, 10:45 PM
this is when running lint in CI. Will paste some logs in the thread.
[2022-11-15T22:41:38Z] ModuleNotFoundError: No module named '_sqlite3'
broad-processor-9240011/16/2022, 12:39 AM
then dep inference will know that
in the docker instructions refers to it... but how can a macro automatically compute the output path? (particularly the
COPY abc.def.ghi/target-name.pex ...
part) One option would be to set
to have it fixed, but that risks collisions when the macro is used multiple times. (Sketch of the macro in the 🧵 )
mysterious-horse-2736411/16/2022, 6:59 AM
tall-country-4595711/16/2022, 3:00 PM
brash-student-4040111/16/2022, 4:09 PM
currently looks like this:
With this definition,
python_sources( name="app_sources", sources=[ "mypy-stubs/stub1.pyi", "mypy-stubs/stub2.pyi", ] ) pex_binary( name="app", entry_point="main.py", dependencies=[ "src/vendor/python:reqs#setuptools", ], restartable=True, )
, I get
./pants run src/services/app:app
. When I remove the stubs from
ModuleNotFoundError: No module named 'services'
, the run command works fine, except then type checking fails. With this definition,
also doesn't show anything - it's as if adding the stubs completely negates any other dependencies. Clearly I've defined things wrong, but I can't seem to find how.
wide-midnight-7859811/16/2022, 9:45 PM
? <-- generalizing to NodeJS
is used under the hood
is part of the
rough-vase-8355311/16/2022, 11:35 PM
? Might be a bit scope creepy but very useful for CI + there's already subsystem logic for Git. One use case I have in mind is raising a CI lint error if a Docker image target changes but its version number hasn't changed.
happy-kitchen-8948211/17/2022, 2:57 AM