dependency-management

How to override a dependency in go modules?

ぃ、小莉子 提交于 2020-06-13 08:50:10
问题 In dep you have the option to override a dependency and have it point to a different repo for example in the following https://github.com/kubermatic/glog-logrus library one needs to add the following lines to the Gopkg.toml file: [[override]] name = "github.com/golang/glog" source = "github.com/kubermatic/glog-logrus" Then in the codebase you import "github.com/golang/glog . However, in go modules I don't see such an option? which leads me to think the only solution is to change the import to

Two version of same dependency - lower version getting ignored

允我心安 提交于 2020-06-13 06:19:51
问题 I have a project in which two dependencies uses different version of same library. For instance, my project has dependency A and dependency B . A and B , both uses a common library/dependency X , but of different versions. A has v1 version of X and B has v2 version of X . So now when I add A & B as dependencies in my project, there are 2 versions of X in my project's go.sum . I was expecting, the respective versions will be referred at run time by A and B . But it is not the case. Somehow

Installing dependencies of a local dependency with pipenv

懵懂的女人 提交于 2020-06-10 09:27:23
问题 Background We have project with the following high-level directory structure* ./datascience/ ├── core │ └── setup.py ├── notebooks │ └── Pipfile └── web └── Pipfile *Excluded all the irrelevant files and directories for brevity. The core package is a library. It's a dependency of both the notebooks and web applications. The core package, being a library, has its dependencies specified in setup.py import setuptools setuptools.setup( install_requires=[ 'some-dependency', 'another-dependency' ]

Installing dependencies of a local dependency with pipenv

我的梦境 提交于 2020-06-10 09:25:22
问题 Background We have project with the following high-level directory structure* ./datascience/ ├── core │ └── setup.py ├── notebooks │ └── Pipfile └── web └── Pipfile *Excluded all the irrelevant files and directories for brevity. The core package is a library. It's a dependency of both the notebooks and web applications. The core package, being a library, has its dependencies specified in setup.py import setuptools setuptools.setup( install_requires=[ 'some-dependency', 'another-dependency' ]

Gradle add nested subproject from a multi-module project as dependency of another subproject

偶尔善良 提交于 2020-05-25 06:33:32
问题 I have a complex, but interesting situation. This is a tree diagram of my folder structure: root |___ settings.gradle |___ p1 |___ p2 // depends on p3/sp1 |___ p3 |____|___sp1 |____|___sp2 I hope that explains the situation. Now how would I add sp1 as a dependency of p2 ? So far in my root setting.gradle , I have rootProject.name = root include 'p1' include 'p2' include 'p3' In p2 build.gradle, I have: dependencies { compile project (':p3:sp1') } But doing this still does not resolve the

Gradle compileOnly and Maven provided

自闭症网瘾萝莉.ら 提交于 2020-05-16 22:30:08
问题 I have a simple project with the retrofit dependency. dependencies { ... implementation 'com.squareup.retrofit2:retrofit:2.8.1' } If i check the retrofit pom.xml I can find the OkHttp dependency as a compile maven scope that means the old compile gradle configuration as well. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache

Preventing inappropriate imports and enforcing project hierarchy in Typescript

妖精的绣舞 提交于 2020-05-14 19:47:50
问题 In a TS project I'd like the following to be blocked: A file from folder common importing from folder projectA A file from folder projectB importing from folder projectA I'd like the following to be allowed: A file from folder projectA importing from folder projectA A file from folder projectA importing from folder common. I'm aware of References. However, as I understand, they require a build for type checking (If such a separation is made, one must build to create d.ts files first) which I

Maven refuse to download aar packaged dependency from remote repository

自闭症网瘾萝莉.ら 提交于 2020-04-28 02:34:26
问题 I want to use this android dependency in my java program: http://jcenter.bintray.com/com/o3dr/android/dronekit-android/2.9.0/ so I added all the plugins & repositories into my maven pom file: <repositories> <repository> <id>central</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--</snapshots>--> </repository> </repositories> <pluginRepositories> <pluginRepository> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--<

Maven refuse to download aar packaged dependency from remote repository

只愿长相守 提交于 2020-04-28 02:33:05
问题 I want to use this android dependency in my java program: http://jcenter.bintray.com/com/o3dr/android/dronekit-android/2.9.0/ so I added all the plugins & repositories into my maven pom file: <repositories> <repository> <id>central</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--</snapshots>--> </repository> </repositories> <pluginRepositories> <pluginRepository> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--<

Google Protobuf dependency collision

*爱你&永不变心* 提交于 2020-03-26 02:36:45
问题 I am working on a Golang library that leverages Google Protobuf. It does so by using code auto-generated by protoc-gen-go, the compiler plugin. I am using Dep for dependency management. The generated code exports the InstanceStatusUpdate struct, for which the field Timestamp is of the type github.com/golang/protobuf/ptypes/timestamp.Timestamp : type InstanceStatusUpdate struct { EvaluationId string VariationId string AttemptNumber int32 Timestamp *google_protobuf.Timestamp Stage string