Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
11076 questions
4
votes
0 answers

npm equivalent of yarn install --check-files (or yarn check)

Update for 2020 This question originally referred to the yarn check command, but the docs state that this is deprecated in v1, and removed in v2, and yarn install --check-files should be used instead. Unfortunately there is still, apparently, no…
davnicwil
  • 20,057
  • 9
  • 87
  • 98
4
votes
2 answers

How to exclude .jar file from .aar file

Is there a way to exclude .jar file from .aar file. My project is not running as I have one module that contains a .aar file in which Gson.jar is used as a library and I need it in my main app as well so I need to implement Gson dependency also.…
4
votes
0 answers

Install npm package globally that has peer dependency (not mentioned in package.json)

I am trying to install marktext globally using npm (after cloning the repository): npm install -g npm WARN dagre-d3-renderer@0.5.8 requires a peer of d3@^4.13.0 but none is installed. You must install peer dependencies yourself. How should I…
Porcupine
  • 4,392
  • 2
  • 13
  • 23
4
votes
2 answers

Simulating lack of a dependency when testing a python script

What's the best way to temporarily hide an installed module from a python script to test how it handles environments that don't have the module installed? I'd like to avoid having to uninstall the module just to test.
Acorn
  • 44,010
  • 23
  • 124
  • 163
4
votes
2 answers

Flutter Packages Get in VS Code failing

Recently got started with Flutter 1.0.0. flutter doctor -v no issues Been deploying to an iOS device no worries. Problem started when I tried to add Dart Packages via the pubspec.yaml file. No packages are installing and it outputs only exit code…
4
votes
1 answer

Pycharm and library root removal

I cannot remove D: as a library root and Pycharm keeps indexing forever. Any suggestions? Edit: D: is not in any path variable
Cioby Andrei
  • 67
  • 1
  • 7
4
votes
3 answers

Using dojo.require() without dojo.declare()

I'm quite confused from Dojo's documentation. How can I use dojo.require() without actually using dojo.declare()? The reason I don't want to use dojo.declare() is that it exposes declared class as global variable. Right now my code looks like…
Jim
  • 51
  • 4
4
votes
3 answers

The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1

I see that this is a common issue apparently, but none of the posted solutions work for me. I have checked and all of my play services and firebase libraries are at the latest version. app/build.gradle: apply plugin:…
kennemat
  • 138
  • 1
  • 7
4
votes
3 answers

Program type already present: com.google.common.util.concurrent.internal.InternalFutureFailureAccess

I'm getting this error while compiling my project. I've found out that's because of Guava, and reason why I'm getting this, is other lib is using Guava (this component of Guava) too (maybe other version, or just duplicated). I can't find out which…
4
votes
0 answers

Product dependency not found — only before Swift 4.2

I'm maintaining two Swift Package Manager projects on GitHub. One of them, DiceKit, depends on the other, ProtocolKit. They are also both using a swift-tools-version of 4.0. DiceKit has continuous integration set up with Travis CI, shown here. It is…
Sam
  • 1,702
  • 1
  • 6
  • 20
4
votes
2 answers

Trying to install dependencies using dep in docker

I have created a docker file in which I have installed golang dep tool which will be used to install the dependencies required by golang project. I have been able to install the tool. But unable to install the dependencies using that tool. I am not…
Himanshu
  • 9,010
  • 5
  • 34
  • 54
4
votes
1 answer

Raco manage package dependencies

With javascript using yarn or npm, a user can update a projects package.json file and use npm install. This is a simple workflow that is easy to follow as it separates the deps specification with the actual installation. Is there something similar…
aqui8
  • 491
  • 3
  • 9
4
votes
1 answer

Ignore ssl certs for easy install python

I have my lib which has setup as setup.py from setuptools import setup setup( setup_requires=['pbr>=0.11.0'], pbr=True ) setup.cfg [metadata] name = MyLib [options] zip_safe = False include_package_data = True install_requires = …
Nilesh
  • 17,950
  • 11
  • 74
  • 119
4
votes
3 answers

Is there a way to break this dependency for unit testing?

My class A is dependent to class B. Here is the code //declaration class A { public: A(B *b); ~A(); void m1(); private: B *ptr_b; }; //implementation A::A(B *b) { ptr_b = b; } A::~A() { delete ptr_b; } void A::m1() { …
onurozcelik
  • 1,164
  • 3
  • 18
  • 41
4
votes
1 answer

What exactly are peer dependencies and plugins

I've came across many articles and posts that discuss the topic of peer dependencies but haven't really grasped the concept. From what I understand, if coffee 1.0 depends on milk 1.0, I will have coffee 1.0 listed in my package.json file under…
lightspeed
  • 193
  • 1
  • 11
1 2 3
99
100