When I run `pants help goals` I don't see the `pub...
# general
q
When I run
pants help goals
I don't see the
publish
goal. However, when I run
pants help publish
I see the goal options. In the documentation, it says the backend for this goal is
pants.core
which should already be enabled by default right? Since I am able to see other goals in that backend like
tailor
. When I try to run
pants publish
I get this output:
Copy code
14:16:51.88 [ERROR] No relevant backends activate the `publish` goal, so the goal would do nothing.

This usually means that you have not yet set the option `[GLOBAL].backend_packages` in `pants.toml`, which is how Pants knows which languages and tools to support. Run `pants help backends`.
I am using Pants version
2.21.0
My `pants.toml`:
Copy code
[GLOBAL]
pants_version = "2.21.0"
backend_packages.add = [
  "pants.backend.build_files.fmt.black",
  "pants.backend.python",
  "pants.backend.python.lint.black",
  "pants.backend.python.lint.isort",
  "pants.backend.plugin_development",
  "pants.backend.python.mixed_interpreter_constraints",

  # Custom Plugins
  "plugin1",
  "plugin2",
]
pants_ignore=[
  "system_test/*",
  "tools/*",
  "team/*",
  "__pycache__",
  "!.git",
]
pythonpath = ["%(buildroot)s/pants-plugins"]
print_stacktrace = true

[anonymous-telemetry]
enabled = false

[source]
root_patterns = [
    "project1/",
    "project2/",
    "project2/project2a/",
    "project3/",
    "project4/",
    "project5/",

    # Custom Pants Plugins root
    "pants-plugins/",
]

[python]
interpreter_constraints = ["==3.10.12"]
enable_resolves = true

[python.resolves]
project = "devops/pantsbuild/lockfiles/project.lock"
pants-plugins = "devops/pantsbuild/lockfiles/pants-plugins.lock"
devops = "devops/pantsbuild/lockfiles/devops.lock"

[python.resolves_to_interpreter_constraints]
pants-plugins = ["==3.9.*"]

[python-bootstrap]
search_path = [
    "<PYENV>",
    "<PATH>",
]

[python-repos]
indexes.add = ["<URL>"]

[python-infer]
unowned_dependency_behavior = "warning"
The pants docs/reference are not consistent. It says
pants.core
for the backend in the reference but
pants.backend.experiement...
in the docs for the
publish
goal