Can someone help me understand `pants-plugins/inte...
# development
b
Can someone help me understand
pants-plugins/internal_plugins/test_lockfile_fixtures
?
src/python/pants/backend/codegen/avro/java/rules_integration_test.py
has an
from internal_plugins.test_lockfile_fixtures.lockfile_fixture
which breaks some boundaries I'm trying to put into the repo. CC @fast-nail-55400?
Looks like that file can just move to
pants.jvm
f
If it moved to pants.jvm, would it be visible to users of the Pants wheels?
b
Only if non-tests import it
f
That internal plugin code should not get published. And the code was separated out into that internal_plugins directory since it is a development stage repo-internal plugin.
What are the boundaries that are being "broken"?
I'm just wary of taking something which is currently separate and exposing it to a place where it might get published if someone imports something from the wrong place.
b
Since they're in the same resolve, i suspect that could already be the case. Also specifically it's just two dataclasses. And I'm looking into putting the pants repo plugins in their own resolve. (Although that point might be moot)
And yeah, if someone was to import in Pants shipping code, nothing is stopping them. After adding the import to a JVM file:
Copy code
josh@cephandrius:~/work/pants$ pants paths --from=src/python/pants:pants-packaged --to=pants-plugins/internal_plugins/test_lockfile_fixtures/lockfile_fixt
ure.py
[
  ...
]