Skip to content

Allow for variables in the package name of pkg_deb#985

Merged
aiuto merged 9 commits intobazelbuild:mainfrom
AtoZdevelopment:pkg_deb_package_name
Nov 21, 2025
Merged

Allow for variables in the package name of pkg_deb#985
aiuto merged 9 commits intobazelbuild:mainfrom
AtoZdevelopment:pkg_deb_package_name

Conversation

@AtoZdevelopment
Copy link
Contributor

Use Common Attributes also in the package name.

Use Common Attributes also in the package name.
@google-cla
Copy link

google-cla bot commented Nov 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@aiuto
Copy link
Collaborator

aiuto commented Nov 20, 2025

Can you rebase on head and try again.
Since you sent this we fixed CI and deb.bzl changed underneath you.

rdesgroppes and others added 6 commits November 21, 2025 08:12
On Windows, `pkg_install` wouldn't work out of the box without passing
`--enable_runfiles` to Bazel:
```
windows> bazel run [redacted]//:install -- --destdir=d:\est
[...]
INFO: Running command line: [redacted]/install.exe <args omitted>
Traceback (most recent call last):
  File "[redacted]\install_install_script.py", line 307, in <module>
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "[redacted]\install_install_script.py", line 299, in main
    installer.include_manifest_path(f)
  File "[redacted]\install_install_script.py", line 182, in include_manifest_path
    with open(path, 'r') as fh:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../[redacted]/install_install_script-install-manifest.json'
```

In order to accomodate the various use cases (`build`, `test` and `run`
actions; enabled and disabled runfiles), the present change proposes to
leverage `rules_python`'s "runfiles" lookup library:
https://rules-python.readthedocs.io/en/latest/api/py/runfiles/runfiles.runfiles.html

For good measure, the change also enables
`bazel test //tests/install/...` in CI for Windows.

This might close bazelbuild#387.
@aiuto aiuto merged commit c9cc9d0 into bazelbuild:main Nov 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants