dtwxt88240 2017-12-24 02:16
浏览 64

在项目和Monolit git存储库中进行微服务

Let's say I want to write one of my microservices in a project with go and I also want to keep monolit git repository for the whole project. The problem is that such microservice should be located under GOPATH and I can't even symlink it into my project cause git doesn't support symlinks. What are options to keep the monolit repository for project while having go microservices in it?

Edit: I mean what the best practice to keep go microservice in git for non-golang project.

  • 写回答

1条回答 默认 最新

  • dsvjmc0907 2017-12-24 06:11
    关注

    Just for simplicity suppose: project is located in /Users/user/Workspace/Monorepo/go-microservice checked out from github repo github.com/Company/Monorepo.

    Make symlink from another side: from GOPATH to required folder. Your repo is kept in standard space and GO can see code with its usual path.

    Thus make in folder /Users/user/go/src/github.com/Company symlink Monorepo pointing to first path.

    评论

报告相同问题?

悬赏问题

  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo