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

Fix wrapping env vars #2

Merged

Conversation

lpawelcz
Copy link
Contributor

This PR fixes issues with escaping environment variables with spaces, e.g. "DIE_AREA=0 0 400 400".

The most important change here is the transition from the usage of run_binary() rule from Aspect Bazel Lib to simple native genrules. This change was required because of a bug in the implementation of run_binary() rule in Aspect Bazel Lib (see bazel-contrib/bazel-lib#666). The implementation from Bazel Skylib is also prone to this bug and additionally has problems with expanding RULEDIR built-in make variable (see bazelbuild/bazel-skylib#438).
Additionally, a slightly modified version of wrap_args() helper function which wraps contents of env vars with spaces into single quotes was also reintroduced to the codebase.

CC @oharboe

@oharboe oharboe merged commit 97424d5 into The-OpenROAD-Project:main Feb 13, 2024
@lpawelcz lpawelcz deleted the 54901-fix-wrapping-env-vars branch February 13, 2024 15:35
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