You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg_web creates invalid output structure under windows. This is because the internal assembler is meant to deal with posix separated paths. However, when invoked under Windows we are providing Posix and non-Posix separators.
Using pkg_web in examples/angular will yeild different package output on windows OS.
pkg_web(
name = "prodapp",
srcs = _ASSETS + [
":bundle-es2015.min",
":bundle-es5.min",
":inject_scripts_for_prod",
"//src/assets",
# Include polyfills that will be requested by old browsers
"@npm//:node_modules/systemjs/dist/system.js",
"@npm//:node_modules/core-js/client/core.min.js",
],
# In production mode we serve some polyfills with script tags that have hard-coded paths in the index.html
# so we must serve them at that path, by stripping a prefix
additional_root_paths = [
"npm/node_modules/core-js/client",
"npm/node_modules/systemjs/dist",
],
)
🔥 Exception or Error
No error, just wrong output structure
🌍 Your Environment
Operating System:
OS: win32 x64
Output of bazel version:
Bazelisk version: v1.3.0
Build label: 2.1.0
Build target: bazel-out/x64_windows-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Feb 7 13:02:33 2020 (1581080553)
Build timestamp: 1581080553
Build timestamp as int: 1581080553
Done in 1.12s.
Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and @bazel/* npm packages.)
1.3.0
Anything else relevant?
The text was updated successfully, but these errors were encountered:
🐞 bug report
Affected Rule
pkg_web
Is this a regression?
Probably not
Description
pkg_web
creates invalid output structure under windows. This is because the internal assembler is meant to deal with posix separated paths. However, when invoked under Windows we are providing Posix and non-Posix separators.Example
🔬 Minimal Reproduction
Using
pkg_web
inexamples/angular
will yeild different package output on windows OS.🔥 Exception or Error
No error, just wrong output structure
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
The text was updated successfully, but these errors were encountered: