angular-docs-cn/packages/bazel/src
George Kalpakas 75fd407bbd build: avoid error in `build-packages-dist.sh` (#32923)
Not sure why it works on other people's environments, but after
217db9b21 I started getting the following error when running
`scripts/build-packages-dist.sh` (on Windows):

```
ERROR: C:/.../angular/packages/bazel/docs/BUILD.bazel:3:1: Generating Skylark documentation dir for docs (3 files) failed (Exit 1)
Traceback (most recent call last):
  File "c:\...\temp\Bazel.runfiles_u_l5te\runfiles\io_bazel_skydoc\skydoc\main.py", line 335, in <module>
    main(sys.argv)
  File "c:\...\temp\Bazel.runfiles_u_l5te\runfiles\io_bazel_skydoc\skydoc\main.py", line 303, in main
    load_symbols = load_sym_extractor.extract(bzl_file)
  File "c:\...\temp\Bazel.runfiles_u_l5te\runfiles\io_bazel_skydoc\skydoc\load_extractor.py", line 110, in extract
    load_symbols = self._extract_loads(bzl_file)
  File "c:\...\temp\Bazel.runfiles_u_l5te\runfiles\io_bazel_skydoc\skydoc\load_extractor.py", line 38, in _extract_loads
    tree = ast.parse(f.read(), bzl_file)
  File "C:\...\.windows-build-tools\python27\lib\ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "packages/bazel/src/ng_package/ng_package.bzl", line 39
    print("[ng_package.bzl]", *args)
                              ^
SyntaxError: invalid syntax
```

It seems expected, because `print` is not a function, so
`print(foo, *args)` is interpreted as printing a tuple (where `*args` is
invalid syntax). Not sure why it doesn't break on other people's
machines :/

This change makes the verbose logs a little less pretty, but that
shouldn't be a big issue (given that it is an opt-in feature and it can
always be overwritten locally, if necessary).

PR Close #32923
2019-10-04 08:27:21 -07:00
..
api-extractor feat(bazel): update to the latest `@microsoft/api-extractor` (#32185) 2019-08-30 13:55:32 -04:00
builders build: update to nodejs rules 0.37.1 (#32151) 2019-09-25 11:29:12 -07:00
ng_package build: avoid error in `build-packages-dist.sh` (#32923) 2019-10-04 08:27:21 -07:00
ngc-wrapped refactor(ivy): remove the tsc passthrough option (#32219) 2019-08-20 16:41:08 -07:00
schematics build: update to nodejs rules 0.37.1 (#32151) 2019-09-25 11:29:12 -07:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
esm5.bzl build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
external.bzl build(bazel): remove deprecated rules_nodejs NodeModuleInfo provider (#31325) 2019-07-01 14:16:42 -07:00
modify_tsconfig.js fix(bazel): do not throw error when writing tsickle externs (#27200) 2018-12-04 14:01:24 -08:00
ng_module.bzl refactor(bazel): ng_module action description should include compile mode (#32955) 2019-10-02 13:21:40 -07:00
ng_rollup_bundle.bzl build: update rules_nodejs and clean up bazel warnings (#30370) 2019-05-14 10:08:45 -07:00