Is there a way to "link" specific content from one repository to the other?

1

I have a program that needs some DDLs , these DDLs are available in another Git, also in GitHub. So, would it be possible for my library link such a file to such a repository?

To be more specific, there is a DDL ( github.com/ c-smile /.../ 64 / sciter.dll ) and it is used in my program. I wanted to include her here, along with main.go , instead of having to do it manually.

Would you like to create a sciter.dll pointed to this GitHub? A sciter.dll that would be dummy, where using go get -x or git clone would go to github.com/c-smile to get this content.

This is possible, how would you do that?

    
asked by anonymous 16.09.2018 / 10:41

2 answers

2

I think there's a way to do what you're thinking, which is to link a module from another project to yours.

  • Browse by ending up the directory for your project and typing: git submodule add https://github.com/<user>/nomeModulo nomeModulo
  • If your git version is old, type this command now: git submodule update --init --recursive
  • That's right, you've imported the submodule into your project!

        
    16.09.2018 / 14:28
    0

    The best practice for this problem is to use one; Package Manager or package management . Package managers are better known to general users on GNU / Linux systems for enabling the installation of programs or applications by the console. The most well-known are: APT ( Advanced Packaging Tool ), RPM ( RPM Package Manager ), among others ... On Windows we have Chocolatey .

    Already in software development, when we work with componentization , in order to distribute pieces of the application; there should be concern about how to distribute this component. Since duplicating code is not an alternative, and does not centralize the distribution of the component, it can lead to its disuse in large companies. This is what package managers are for!

    Used for both back-end and front-end components we have options specific to each language or platform. Here are several known links:

    If your packages can be public, there should be a Go repository that you can use. Hence your build process should have access to this repository to use the published package. If it has to be private, you should have that management in your infrastructure.

    You can also search for universai package managers, which accept various feeds, from different languages. Take a look at Azure DevOps Packages .

        
    18.09.2018 / 20:10