<#21947 local_execution_root_dir is not "ignored" ...
# github-notifications
c
#21947 local_execution_root_dir is not "ignored" by default Issue created by cburroughs
Copy code
cd $(mktemp -d)

cat > pants.toml <<EOF
[GLOBAL]
pants_version = "2.24.1"
local_execution_root_dir = "%(buildroot)s/pants.d/tmp"

backend_packages = ["pants.backend.tools.taplo"]

# pants_ignore.add = ["pants.d/tmp"]

[source]
root_patterns = ["/src"]
EOF

mkdir -p pants.d/tmp/
echo "foo = \"world\"    " > pants.d/tmp/foo.toml

pants --no-pantsd lint ::
Results in
Copy code
15:40:45.44 [INFO] Initializing Nailgun pool for 16 processes...
15:40:46.98 [INFO] Initializing Nailgun pool for 16 processes...
15:40:47.07 [WARN] Completed: Format with taplo - taplo made changes.
  pants.d/tmp/foo.toml

āœ• taplo failed.

(One or more formatters failed. Run `pants fmt` to fix.)
I don't think this is a footgun and that situation would almost never be intentional. (I stumble upon this this because a transitive dependency included test files of purposefully invalid toml) pantsbuild/pants