curved-television-6568
11/13/2023, 5:52 PMbitter-ability-32190
11/13/2023, 5:52 PMcurved-television-6568
11/13/2023, 5:52 PMbetter-van-82973
11/14/2023, 3:59 PMfmt
) as discussed here: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1699632752483199. So to make things convenient, we have to use Ruff for formatting AND linting, or not at all.
I have a branch up here with an example of the changes: https://github.com/krishnan-chandra/pants/tree/migrate-repo-ruff
Let me know if you have any thoughts or questions!bitter-ability-32190
11/14/2023, 6:30 PMpytest
) where the resolve the requirements come from isn't static. Instead you'd set install_from_resolve
to true
to say "install from the resolve of the test' source.
It's for cases where:
• You have test_resolve_a
in resolve A. It uses fixtures or whatever, so does import pytest
• You also have test_resolve_b
in resolve B. Same schtick. import pytest
• Their ICs don't overlap
So no value of install_from_resolve
would work. Not even putting pytest
in its own resolve (because of the imports).
Instead pytest
should come from the resolve of the source file.ancient-vegetable-10556
11/14/2023, 6:41 PMflat-zoo-31952
11/14/2023, 8:19 PMcurved-television-6568
11/16/2023, 9:58 PMfresh-cat-90827
11/19/2023, 8:07 AMcurved-manchester-66006
11/20/2023, 2:00 PMpants lint
on an internal repo:
16:45:09.59 [INFO] Completed: Lint Helm charts - helm succeeded.
Partition: cron-ingest-snowflake
16:45:09.59 [INFO] Completed: Lint Helm charts - helm succeeded.
Partition: cron-ingest-yes-series
16:45:09.59 [INFO] Completed: Lint Helm charts - helm succeeded.
Partition: cron-ingest-rds
16:45:09.59 [INFO] Completed: Lint Helm charts - helm succeeded.
Partition: cron-ingest-feast
16:45:11.95 [INFO] Completed: Lint with Hadolint - hadolint succeeded.
16:45:12.00 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
Partition: ['CPython==3.10.*']
16:45:12.00 [INFO] Completed: Format with isort - isort made no changes.
16:45:12.00 [INFO] Completed: Format with Black - black made no changes.
16:45:12.01 [INFO] Completed: Format with Black - black made no changes.
16:45:12.01 [INFO] Completed: Format with Black - black made no changes.
16:45:12.08 [INFO] Completed: Fix with pyupgrade - pyupgrade made no changes.
• Why does Partition:
not have a timestamp/log level?
• What is a user supposed to understand from Completed: Format with Black - black made no changes.
3 times in a row?broad-processor-92400
11/20/2023, 10:10 PMfresh-cat-90827
11/25/2023, 9:49 PMbroad-processor-92400
11/27/2023, 7:36 PMwide-midnight-78598
11/28/2023, 3:20 AMthread 'main' panicked at /Users/sj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.12.3/src/lib.rs:1521:10:
Could not find `protoc` installation and this build crate cannot proceed without
this knowledge. If `protoc` is installed and this crate had trouble finding
it, you can set the `PROTOC` environment variable with the specific path to your
installed `protoc` binary.You could try running `brew install protobuf` or downloading it from <https://github.com/protocolbuffers/protobuf/releases>
ancient-vegetable-10556
11/29/2023, 6:23 PMhappy-kitchen-89482
11/30/2023, 12:40 AMlate-advantage-75311
12/01/2023, 3:36 PMhappy-kitchen-89482
12/02/2023, 10:35 PMhappy-kitchen-89482
12/02/2023, 10:53 PMhappy-kitchen-89482
12/04/2023, 2:37 AMhappy-kitchen-89482
12/04/2023, 2:38 AMbroad-processor-92400
12/05/2023, 2:00 AMfresh-cat-90827
12/05/2023, 4:44 PM$ rm cheeseshop/repository/package.py
$ git add cheeseshop/
$ git commit -m "delete file"
[main b7f25cd] delete file
1 file changed, 395 deletions(-)
delete mode 100644 cheeseshop/repository/package.py
$ git log --diff-filter=D --summary | grep delete
delete file
delete mode 100644 cheeseshop/repository/package.py
$ pants --changed-since=origin/main list
cheeseshop/repository:repository
🧵late-keyboard-89314
12/05/2023, 6:39 PMgo_binary
targets for multiple platforms, and right now it’s achievable through `environment`s primarily. But given how good Go’s cross-compliation support is, it seems odd to me that there’s (as far as I can tell) no native pants
way to do that. What I’d propose is something similar to the docker_image
target’s build_platform
field, so you could do something like this for a Go target:
go_binary(
name="bin"
go_os=["linux"]
go_arch=["amd64", "arm64"]
)
and end up with bin_linux_amd64
and bin_linux_arm64
in your dist/
outputs. Thoughts? Is there already a clean way to do this that I’m missing?happy-kitchen-89482
12/05/2023, 8:39 PMhappy-kitchen-89482
12/05/2023, 8:39 PMlate-advantage-75311
12/06/2023, 2:56 PMcode_quality_tool
and adhoc_tool
. Daniel caught an error, and it is fixed now, but it will benefit from review from someone else familiar with adhoc_tool.
• We're ready to take on the design discussion around the ergonomics part 2 of code_quality_tool which is needed before we announce it. I've summarized some of the proposals around it in https://github.com/pantsbuild/pants/issues/17729#issuecomment-1843036540wide-midnight-78598
12/06/2023, 10:26 PMlate-advantage-75311
12/07/2023, 3:21 PMbitter-ability-32190
12/07/2023, 6:56 PM/foo.txt
on one run, another run will be able to see it?