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

Note: building //web/src:styles on macOS needs sandboxed execution #61

Open
ztl8702 opened this issue Feb 28, 2020 · 1 comment
Open

Comments

@ztl8702
Copy link
Collaborator

ztl8702 commented Feb 28, 2020

It seems that the SassCompiler is not hermetic.

If you build //web/src:styles without sandboxed execution, it will fail with:

ERROR: yngdieng/web/src/BUILD.bazel:36:1: Compiling Sass failed (Exit 65)
Error: Can't find stylesheet to import.
  ╷
1 │ @import '@angular/material/theming';
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  web/src/custom-theme.scss 1:9  root stylesheet

Error: Can't find stylesheet to import.
  ╷
1 │ @import '@angular/material/theming';
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  web/src/custom-theme.scss 1:9  @import
  web/src/styles.scss 3:9        root stylesheet
Target //web/src:styles failed to build

However, neither custom-theme.scss nor styles.scss is in the input for //web/src:styles.

For now I disabled --spawn_strategy=local in .bazelrc. This might lead to reduced build performance on macOS. (However not very significant as far as I can tell)

@ztl8702
Copy link
Collaborator Author

ztl8702 commented Feb 28, 2020

ref bazelbuild/bazel#8230

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

No branches or pull requests

1 participant