rye icon indicating copy to clipboard operation
rye copied to clipboard

Workspace members: Added symbolic link support

Open LLouice opened this issue 9 months ago • 2 comments

LLouice avatar May 12 '24 15:05 LLouice

Hi! Can you say a bit more about why this change is important or link to some prior discussion?

zanieb avatar May 13 '24 13:05 zanieb

Sorry for the late reply.

I am not sure if the fact that workspace members do not follow symbolic links is intentional. If it is, perhaps we could add a clear flag like follow-link = true to accommodate this PR. The reason I want to add this feature is to solve an issue I am facing, which is as follows:

- MyMonoRepo
  - libs
    - util_lib
  - Projects
    - projectA
      - src
        - projectA
      - pyproject.toml
      - libs
        - util_lib_lnk -> MyMonoRepo/libs/util_lib  # symbolic link as workspace member
        
      - projectB

When developing any project, such as projectA, I want to include util_lib as a workspace member and install it editable locally. However, util_lib is not located within the projectA directory, and I found that this can be achieved through symbolic links.

Is there another method that I am not aware of that can accomplish what I want?

It seems that PR #1023 is related to this PR, as both are about locating workspace members in a mono repo. Symbolic links seem to be a possible solution.

LLouice avatar May 15 '24 05:05 LLouice