I’m new to pants and have set it up for an existin...
# general
l
I’m new to pants and have set it up for an existing repo which has a bunch of folders that we don’t want to manage with Pants. (Mostly it’s deployment stuff, and some code we haven’t moved into the Pants directory structure yet) But when I try to use
--changed-changes-since
I’m getting failures because of folders that don’t have a BUILD file. I looked around it sounded like either
build_ignore
or
pants_ignore
in
pants.ini
should allow me to configure these paths to be ignored but it doesn’t seem to work. Am I using it wrong? The configuration I’ve done:
Copy code
$ ./pants options
# [... snip ... ]
build_ignore = ['.*/', '/dist/', 'bower_components/', 'node_modules/', '*.egg-info/', '/.provisioning/'] (from CONFIG)
pants_ignore = ['.*/', '/dist/', 'bower_components/', 'node_modules/', '*.egg-info/', '/.provisioning/'] (from CONFIG)
And what I get when I run (am I invoking this correctly?):
Copy code
./pants --changed-changes-since=ba/ci --changed-include-dependees=transitive test

Exception caught: (<class 'pants.engine.engine.ExecutionError'>)

Exception message: Multiple exceptions encountered:
  ResolveError: Path ".provisioning/.playbooks/roles/postgis/meta" contains no BUILD files.
  ResolveError: Path ".provisioning/.playbooks/roles/gocd__agent/meta" contains no BUILD files.
  ResolveError: Path ".provisioning/.infra/modules/ec2-instance" contains no BUILD files.
  ResolveError: Path ".provisioning/.infra/apps/gocd" contains no BUILD files.
# [... snip ...]