fix: Prevent absolute path creation in uv lock template by asa · Pull Request #2769 · bazel-contrib/rules_python

This change fixes a bug in the lock rule where, when the package is at the root level, the path to requirements.txt is constructed incorrectly with a leading double slash (//requirements.txt), causing it to be interpreted as an absolute path.

This change detects if the package is empty before constructing the output path.

Work towards #1975