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

Webpack resolve issue if ROOT_DIR is a sub-path of a symlink #10234

Closed
bferguso opened this issue Nov 3, 2023 · 1 comment
Closed

Webpack resolve issue if ROOT_DIR is a sub-path of a symlink #10234

bferguso opened this issue Nov 3, 2023 · 1 comment

Comments

@bferguso
Copy link
Contributor

bferguso commented Nov 3, 2023

If the ROOT_DIR is within a path that contains a symlink directory, resource resolve fails as the absolute (real) path is different than the symlink path.

For example, in our system, the venv directory is /fs/u02/apps_ux/apps_dlvr/venv. However there is an /apps_ux/ -> /fs/u02/apps_ux/ symlink in the root that causes line 366 in webpack/webpack.common.js to not match:
templatePath = resourcePath.split(APP_ROOT)[1];

An example of this mismatch in our case is as follows:

ROOT_DIR: /apps_ux/apps_dlvr/bcrhp_dlvr_venv/lib64/python3.9/site-packages/arches
Resource:  /fs/u02/apps_ux/apps_dlvr/bcrhp_dlvr_venv/lib/python3.9/site-packages/arches/app/templates/views/components/cards/related-resources-map.htm

Resolving all paths to the real (full path) should fix this issue (eg os.path.realpath(ROOT_DIR)).

@jacobtylerwalls
Copy link
Member

Fixed in #10236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants