GO - Go mod and Submodule

4 posts / 0 new
Last post
Offline
Last seen: 3 years 4 months ago
Joined: 06/26/2019
Posts: 2
GO - Go mod and Submodule

GO DDS Repo - https://github.com/rticommunity/rticonnextdds-connector-go

 

GO mod does not play well with git repository containing Submodule. Is there a recommended/official way around it for this?

Offline
Last seen: 7 months 6 days ago
Joined: 05/23/2013
Posts: 64

Hi,

I am currently looking into this and created an issue in GitHub for this to keep track of the status. 

https://github.com/rticommunity/rticonnextdds-connector-go/issues/3

As noted in the following link, Git submodule wouldn't be supported by Go modules. 

https://github.com/golang/go/issues/24094#issuecomment-377559768

I think we can have the rticonnext-connector (C libs and headers) directory in the rticonnext-connector-go repository without Git submodule. That would solve the issue. I will work on it and let you know when it is ready.

Thanks,
Kyoungho

Offline
Last seen: 7 months 6 days ago
Joined: 05/23/2013
Posts: 64

Hi,

I removed the git submodule and include the C libs and headers directly in the Go connector repository. I tested with Go modules and it worked. Please check out and let me know if you have any issues or questions. 

Thanks,
Kyoungho

Offline
Last seen: 3 years 4 months ago
Joined: 06/26/2019
Posts: 2

Thank you Kyoungho!