Hey all, For some reason my `generate-lockfiles` i...
# general
b
Hey all, For some reason my
generate-lockfiles
is not creating nor updating lockfiles. I ran
pants --keep-sandboxes=on_failure -ldebug  generate-lockfiles
both with the old lockfile in place (updated some deps recently) and deleting the old one, but it never updates. And the log does not give any errors. Any ideas? (pasted log in thread)
Copy code
19:45:53.88 [DEBUG] specs are: Specs(includes=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=True, from_change_detection=False), ignores=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=False, from_change_detection=False))
19:45:53.88 [DEBUG] changed_options are: ChangedOptions(since=None, diffspec=None, dependents=<DependentsOption.NONE: 'none'>)
19:45:53.88 [DEBUG] Launching 1 roots (poll=false).
19:45:53.88 [DEBUG] computed 1 nodes in 0.004063 seconds. there are 47 total nodes.
19:45:53.88 [DEBUG] Launching 1 roots (poll=false).
19:45:53.88 [DEBUG] computed 1 nodes in 0.000318 seconds. there are 52 total nodes.
19:45:53.88 [DEBUG] Launching 1 roots (poll=false).
19:45:53.88 [DEBUG] computed 1 nodes in 0.000130 seconds. there are 52 total nodes.
19:45:53.88 [DEBUG] requesting <class 'pants.core.goals.generate_lockfiles.GenerateLockfilesGoal'> to satisfy execution of `generate-lockfiles` goal
19:45:53.88 [DEBUG] Launching 1 roots (poll=false).
19:45:53.90 [DEBUG] Completed: Generate `python_requirement` targets from requirements.txt or PEP 621 compliant pyproject.toml
19:45:53.90 [DEBUG] Completed: Generate `python_requirement` targets from requirements.txt or PEP 621 compliant pyproject.toml
19:45:53.91 [DEBUG] Completed: Find all targets in the project
19:45:53.91 [DEBUG] /Users/williamlac/.cache/pants/lmdb_store/immutable/files -> /Users/williamlac/Personal/Programming/TU Delft/digico-backend hardlinkable: true
19:45:53.91 [DEBUG] external invalidation: cleared 1 and dirtied 236 nodes for: {""}
19:45:53.91 [DEBUG] Completed: `generate-lockfiles` goal
19:45:53.91 [DEBUG] computed 1 nodes in 0.025109 seconds. there are 345 total nodes.
My pants.toml
Copy code
[GLOBAL]
pants_version = "2.21.0"
backend_packages = [
  "pants.backend.build_files.fmt.ruff",
  "pants.backend.python",
  "pants.backend.experimental.python.lint.ruff.check",
  "pants.backend.experimental.python.lint.ruff.format",
  "pants.backend.experimental.python.typecheck.pyright",
  "pants.backend.docker",
  "pants.backend.docker.lint.hadolint"
]

[python]
interpreter_constraints = ["==3.11.*"]
pip_version = "24.0"

[python.resolves]
ruff = "3rdparty/python/ruff.lock"
python-default = "python-default.lock"
c
do you need to specify the
--resolve
argument, like
--resolve=python-default
?
👍 1
b
Tried to do it also, still did not generate
c
b
that was it! Thanks a lot!!