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

Bump bazelversion to 8 #94

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bump bazelversion to 8 #94

wants to merge 4 commits into from

Conversation

hofbi
Copy link
Contributor

@hofbi hofbi commented Dec 20, 2024

Let's see what needs to be done to make it work with Bazel 8

@hofbi
Copy link
Contributor Author

hofbi commented Jan 8, 2025

Closing in favor of #107

@hofbi hofbi closed this Jan 8, 2025
@hofbi hofbi reopened this Jan 8, 2025
.bazelrc Outdated
Comment on lines 38 to 40
# Default changed in bazel 8
# See: https://github.com/bazelbuild/bazel/commit/489d08bf472f4568b3f7f478a8747a30cb956111
build --zip_undeclared_test_outputs=true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the easy solution to make it work with bazel 8. Getting rid of this flag might require some changes in the rostest impl of this repo.

Copy link
Owner

Choose a reason for hiding this comment

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

Interesting, thanks for digging into this. Do you know what changes are needed?

Copy link
Contributor Author

@hofbi hofbi Feb 10, 2025

Choose a reason for hiding this comment

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

No, I didn't dig deeper into the problem. But with the new default from Bazel 8, you would have a directory structure instead of a .zip file in some test output folder. Any immediate idea where this could be problematic?

.bazelrc Outdated
@@ -35,6 +35,10 @@ build --nolegacy_external_runfiles
# Don't bother building targets which aren't dependencies of the tests.
test --build_tests_only

# Default changed in bazel 8
Copy link
Owner

Choose a reason for hiding this comment

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

Please rephrase that this is mandatory at the moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

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.

2 participants