如何处理受源代码控制的项目中的符号链接?

发布于 2024-09-16 11:09:11 字数 842 浏览 2 评论 0原文

我们有几个 php 项目。这些项目使用 Zend Framework,我们还维护一个具有各种功能的通用核心库。

现在我的目录结构看起来像这样

project-1
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project1Lib
project-2
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project2Lib
libraries
         \Zend
         \Core

在 Subversion 中我似乎在符号链接方面遇到了麻烦,它添加了实际的文件(我在 Mac 上使用 Syncro)而不仅仅是符号链接。但这让我思考,我想知道布局项目的最佳方式是什么,以避免拥有相同库的多个副本?

We have several php projects. The projects use the Zend Framework and we also maintain a common core library with various functions.

Right now my directory structure looks like this

project-1
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project1Lib
project-2
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project2Lib
libraries
         \Zend
         \Core

In Subversion I seem to be having trouble with the sym links, it's adding the actual files (I'm using Syncro on the Mac) instead of just the sym links. But it got me thinking and I was wondering what the best way of laying out the project is in order to avoid having multiple copies of the same libraries?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

留一抹残留的笑 2024-09-23 11:09:11

官方的 subversion 客户端可以处理 符号链接,但显然你的客户没有正确处理它们。

The official subversion client can deal with symlinks, but obviously your client doesn't handle them properly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文