Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install: Add --wipe_destdir option #894

Merged
merged 3 commits into from
Sep 28, 2024
Merged

Conversation

jacky8hyf
Copy link
Contributor

If specified, wipe destination directory before installing.

Fixes #893.

HONG Yifan added 2 commits September 20, 2024 14:29
Cleans up a lot of code!
If specified, wipe destination directory before installing.

Fixes bazelbuild#893.
Copy link
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your call on the doc wording.

pkg/private/install.py.tpl Show resolved Hide resolved
pkg/private/install.py.tpl Outdated Show resolved Hide resolved
Clarify that this will delete the whole directory.
@jacky8hyf
Copy link
Contributor Author

The test error seemed unrelated to my patch. How do I re-run the test?

@aiuto
Copy link
Collaborator

aiuto commented Sep 28, 2024

The test error seemed unrelated to my patch. How do I re-run the test?

They are unrelated errors. Something change in Bazel at head that is breaking a few of these. It's not that Bazel is really broken either, it's that we have tests for compatibility against WORKSPACE too, and Bazel is rapidly deprecating support for that.

I will force merge.

@aiuto aiuto merged commit 5c6aec6 into bazelbuild:main Sep 28, 2024
1 of 2 checks passed
@jacky8hyf jacky8hyf deleted the wipe_dest branch October 1, 2024 19:30
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.

Add pkg_install(wipe_destdir: bool)
2 participants