如何将符号链接文件添加到 gitlab 存储库 [英] How to add symlink file to a gitlab repo
问题描述
如何将符号链接添加到文件到 gitlab 存储库?
How can I add symlink to file to gitlab repository?
每次我从 gitlab 运行管道时,本地符号链接都会被破坏.
Every time I run a pipeline from gitlab, the local symlink gets destroyed.
任何关于如何为 gitlab repo 中的文件夹创建符号链接的建议都会很棒.
Any suggestions on how to create a symlink for a folder which resides inside of gitlab repo would be great.
推荐答案
您可以在 Git 存储库中存储 符号链接(特殊条目 12000),但是,如 这个测试,这会使 GitLab 管道 失败.
请参阅 gitlab-ce issue 27542 (尽管它适用于特定情况.gitlab-ci.yml
是一个符号链接).
You can store in a Git repo a symlink (special entry 12000), but, as seen in this test, that would make the GitLab pipeline fail.
See gitlab-ce issue 27542 (though it is for the particular case of .gitlab-ci.yml
being a symlink).
最好管道首先重新创建符号链接,然后在其后续步骤中使用正常构建进行处理:重新生成它似乎比存储它更好.
It is best if the pipeline first recreate the symlink, then process in its subsequent steps, with the normal build: regenerating it seems better than storing it.
这篇关于如何将符号链接文件添加到 gitlab 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!