Hi all,
Cross-posting from
StackOverflow . I am new to Bazel, I don't know where else I can ask questions.
Can we change or provide a custom path for execRoot in Bazel 7.4 with Bazelmod enabled?
Or at least change the name of the main repository from _main to something else ?
My problem is, before enabling Bazelmod, Some files were available at path like:
/home/ssahoo/.cache/bazel/_bazel_ssahoo/eb5a6bd7163c3bba3080b98009823a76/execroot/<workspace_name>/APP_NAME/app/javascript/styles/charges/charges.sass
Now, after enabling Bzlmod, the path has changed to
/home/ssahoo/.cache/bazel/_bazel_ssahoo/eb5a6bd7163c3bba3080b98009823a76/execroot/_main/APP_NAME/app/javascript/styles/charges/charges.sass
So TS imports that are using path <workspace_name>/APP_NAME/app/javascript/styles/charges/charges.sass fails as there is no workspace_name in the path anymore.
I know I can use `_main` or a relative path here, but I am trying to avoid changing too many files. There are hundreds of files in this monorepo using such import paths. Can I use the module name or workspace name here instead of _main? Or are there any other solutions?