Webpack assets contain node build path
Several of the webpack assets contain path information when compiled.
The main
bundle is an example of this. Sometime during asset compilation, it appears that some require
statements are being replaced with strings, such as: "ignored /var/cache/omnibus/src/gitlab-rails/node_modules/vue-resource/dist got"
The presence of this path causes the assets to be compiled with different chunk hashes on an omnibus build, vs a source install.
In the future we plan to publish a separate build of the assets that can be used in CDN's, and ideally we would like this to be able to used with all our other installation methods when using the same version of GitLab. Having this patch information in there makes it harder to do that.
I ran into the this while working on the cloud-native containers, and was trying to use the omnibus workhorse to provide assets for a split out unicorn container. And even though they were on the same git commit, the unicorn container was trying to use assets that were not available in the omnibus build.
cc\ @mikegreiling @marin