https://pantsbuild.org/ logo
#general
Title
# general
c

clever-crayon-70731

11/13/2022, 8:30 PM
I want to make some .mo translation files available to my program at runtime so I added a target
Copy code
resources(name="locale", sources=["**/*.mo"])
but Pants seems to ignore them? They don't show up when I run
pants dependencies
Is Pants filtering binary files or something?
c

curved-television-6568

11/13/2022, 8:55 PM
unless you have a string like
"src/some/file.mo"
in your sources and
[python-infer] assets=true
you will need to also add the
resource
target to your source dependencies explicitly.
python_sources(dependences=["src/path/to/target:locale"])
.
c

clever-crayon-70731

11/14/2022, 8:08 AM
I'm aware of that and I've done that, but the binary .mo files seem to get ignored
2 Views