Questions tagged [dependency-management]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
37 views

does Python import statement constitute redistribution or running of the imported package [closed]

If I write a program that imports a package (call it "B", licensed under the MIT license) which in turn imports a package (call it "A", licensed under GPL2), then does my program ...
user avatar
1 vote
2 answers
126 views

Where to put technical updates in git branching flow?

From time to time you need to do technical updates, like: Update versions of your dependencies Update the version of your parent POM, you build tool etc. Leave out those updates that have a firm ...
user avatar
1 vote
4 answers
136 views

Build systems/development environments allowing alternate/backup dependencies

In most build systems and development environments, there tends to be exactly one dependency tree per project - each module depends on a constant set of other modules to do its job, with the only ...
user avatar
0 votes
1 answer
56 views

Design class with different dependency requirements based on configuration

I’m struggling a bit to design the following class: It’s a service class with multiple methods. It depends on a http client interface which must be created in the factory method and can’t be passed ...
user avatar
  • 141
0 votes
2 answers
99 views

Use deprecated library or copy the code I need from it into my codebase?

I need some code from some deprecated libraries, one small class (150 lines) and two functions (24 lines). The libraries are part of larger set that we use a couple of but both are being deprecated. ...
user avatar
  • 11
0 votes
0 answers
30 views

How to use a custom scope in multi-module Android project?

My project consists of following modules: -app -presentation -domain -data -injection In injection module i create Dagger modules, components and custom Activity scope (@ActivityScope). Since, ...
user avatar
2 votes
1 answer
55 views

What is the relation between edges in a dependency graph and the program call to create a vertex?

A Makefile is a representation of a depency graph. The files are the vertices, for example somefunctions.h, somefunctions.c and myprogram.c are the "input" vertices (is there a formal word ...
user avatar
  • 147
1 vote
1 answer
117 views

Should I stub hidden dependencies in Python unit tests

Python is very specific language which gives developer huge flexibility. So if I have class like this: class Car: def __init__(self, engine: Engine): self._engine = engine # dependency ...
user avatar
  • 231
2 votes
1 answer
169 views

Is there a convenient way to include only a particular snapshot of a git repository inside another project?

Update: I think I may have found one possible solution for this question: git worktree. I'll have to investigate its exact workings a bit more, because I'm not entirely sure yet if it can do what I ...
user avatar
  • 171
-3 votes
1 answer
124 views

how to manage build and deployments from Multi repos using versions

Consider you have two repos A, B. Let say repo A has some infrastructure code - not needed to be updated always- but it has the code for the service we want to deploy as infra. On the other hand, ...
user avatar
  • 17
7 votes
2 answers
642 views

Versioning in parallel features development

I have a library (npm package, LIB) which is used by the application code (APP). In a release of APP, multiple features are worked on parallely. Sometimes these features need support from LIB, so the ...
user avatar
  • 197
1 vote
2 answers
221 views

Should we include the entire sources of the libraries used in our project?

I'm used to using static link libraries in my projects. This doesn't make the solution heavier and allows to be updated more easily. However, I see some GitHub repos providing in their sources the ...
user avatar
  • 219
5 votes
3 answers
513 views

How to ensure long-term enterprise software stability with changing frameworks / things going out of support?

I work for the in-house IT department of one of the largest companies in my country. The infrastructure and software systems are heavily based on Oracle Database. Most core business processes and ...
user avatar
  • 99
-4 votes
1 answer
17 views

Components dependency check

Lets say you have 2 docker stacks: stack-A.yml defines serviceA and stack-B.yml defines serviceB; you also have an archive of common data that will be mounted by services. How could I verify that ...
user avatar
2 votes
0 answers
53 views

How to deal with package management when having a monolith broken down in packages?

At our company we have a monolith PHP application which has been broken down into multiple (self developed) packages around the (self developed) framework package. This application isn’t a SAAS ...
user avatar
3 votes
2 answers
105 views

Twelve-Factor App: Dependency Managment and binaries

As I was reading an update on an issue in github an user suggested me to read the '12factor' principles. While I was reading it I started having some questions on some concepts written in the ...
user avatar
2 votes
1 answer
198 views

Managing compatibility and dependencies in code library

I manage a library that is made of multiple components, there is some dependencies between some of these components, for example I have a core library for common code base that is referenced by other ...
user avatar
  • 349
-1 votes
1 answer
73 views

How to release interlocked changes to two different projects?

Originally https://stackoverflow.com/q/58816567/369489 There are tow separate projects within the same organization: P (product, at version p) which depends on L (library, at version l). p lists l in ...
user avatar
1 vote
1 answer
62 views

Transpiling in npm modules

While recently creating a module for shared functionality between our projects I stumbled upon this question. Should the module be occupied with transpilation of code to older browsers that our ...
user avatar
  • 197
1 vote
0 answers
25 views

Dealing with other dependencies in your own Maven dependency

Maybe this question is a duplicate. However, I could not find a suitable article in my research. If you know an informative, comprehensive article about this topic, please send it to me. I want to ...
user avatar
  • 111
3 votes
0 answers
238 views

C++ dependency management across projects

We are developing a benchmarking framework in C++, with Make and CMake as build tools. The aim of the framework is to allow others who build algorithms to perform head-to-head comparison against prior ...
user avatar
1 vote
1 answer
186 views

Avoiding instantiating the whole application at startup when using a composition root

In a typical non-DI application, when you enter a section of code the necessary objects are constructed and when you leave it they are deconstructed. However, when doing dependency injection with a ...
user avatar
4 votes
2 answers
424 views

Is it a bad idea to model dependencies using a project's directory structure?

Let's say I have three classes: A, B, and C. All of these classes are simple and they create a cohesive unit. In addition, B depends on C and C depends on A. Most people would put these classes into ...
user avatar
1 vote
1 answer
223 views

What is the right algorithm to solve this problem?

The problem is - We have a series of boxes (A, B, C, D, ...). Each box contains bricks of different colours. For eg. Box A - red, blue Box B - blue, red, green ... and so on... and there are ...
user avatar
3 votes
2 answers
134 views

Critical dependency is preventing me from updating my app to latest framework version

My project relies on a specialized component which is stuck (by its configuration) to an older version of the framework my project is using. This makes updating to the latest version of the framework ...
user avatar
3 votes
2 answers
254 views

Adding library as dependency only to use one function

Few months ago I started working in a team that develops software using Node.js. Quite often we encounter the problem that has been already solved by someone else and the solution is already available ...
user avatar
  • 1,342
2 votes
1 answer
1k views

Best practice of c/C++ dependency management on build servers?

I develop largely in java which has maven or ant/ivy. Is there a recommended way to manage build dependencies for c++ projects? I'm setting up the build on our build server right now but the thing ...
user avatar
  • 139
1 vote
1 answer
486 views

Managing a third party library that is used by multiple independent libraries

I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...
user avatar
1 vote
1 answer
137 views

working with multiple libraries and versions using nuget local feed

so I am in a position where I doubt my solution to the following problem: - we are developing a wpf desktop application with c# and have a decent plugin system. This increases the libraries we have ...
user avatar
  • 170
0 votes
1 answer
539 views

Structuring dependencies for .Net core across Nuget packages

I am working on a microservices system in c# (.Net Core) where for simplicity we place each microservice in it's own repo. Some services are very generic and some are very similar (although for ...
user avatar
  • 364
5 votes
3 answers
12k views

Resolving circular dependency between two classes

I am trying to resolve a circular dependency between two components in my system. The Messenger component is responsible for sending and receiving messages on a web socket. The Controller component ...
user avatar
69 votes
9 answers
19k views

Why prefer a package manager over a library folder?

When I think about the pros and cons of a static library folder and a package manager I feel like the library folder is a better approach. Pros I see with a library folder: No need for an external ...
user avatar
4 votes
0 answers
610 views

How to manage multiple NuGet packages in GitHub and Artifactory?

My colleagues and I are in the process of re-architecting our system. The old system is a ASP.NET monolith using TFS for source control. The new system is made up of ASP.NET Core microservices using ...
user avatar
2 votes
1 answer
104 views

Efficient dependency management between components

Let's say my app depends on lib A that depends on B that depends on C (we are owners of them all). Now, you bump the version of C to 1.0.1 (a bug fix). How would you propagate the change of C to the ...
user avatar
  • 393
3 votes
1 answer
360 views

Multiple Git repos practices for distributed environment

In a nutshell what I need is a simple good practice for multiple (loosely coupled or tightly coupled), git repositories I would love to hear there is a good framework for that, but I have read a ...
user avatar
4 votes
2 answers
3k views

"Crossing Boundaries" in Clean Architecture

I am a layman without any programming-like education but I spent the better part of my free time to get into programming bots for some games in first AutoIt and then C++. I was introduced to ...
user avatar
0 votes
3 answers
1k views

Inject type as dependency injection, when new instances are required on each method call - How to avoid?

I have a class public class CertificadoHandler : ICertHandler { Type typeAfirmaValidate; public CertificadoHandler(){ typeAfirmaValidate = typeof(AfirmaValidateCertificate); } ...
user avatar
  • 592
-1 votes
3 answers
342 views

Refactoring - Resolve dependencies between legacy code used by third parties

I am developing two libraries in .Net Firs one it's a library with core functionality (named it Library.Core.dll) Let's focus in User class public class User { //set of constructors and ...
user avatar
  • 592
7 votes
1 answer
15k views

Singleton with dependency injection ,is that a good practice in some cases?

It's a good idea to have a Singleton implementation with dependency injection? I have some classes that performs some heavy tasks on instantiation (related to database loading). I would like to use ...
user avatar
  • 592
1 vote
2 answers
5k views

Remove circular dependency

I have 2 classes that have dependencies. public class AuditManager { //set of methods public static AuditManager Singleton= new AuditManager(); public int AuditEvent(int x){ ...
user avatar
  • 592
-1 votes
1 answer
574 views

Is it possible to ship libraries with code?

Is there any way to safely include libraries (either internal or external) in the directory of a project (say in a lib/ folder) when you ship or release code? As far as I can see it would be a lot ...
user avatar
2 votes
3 answers
229 views

Common libraries in build chain

Like many (most ?) people, we have multiple "common" libraries managing various things (business objects, utilities, external libraries...) for multiple projects (web service, admin/users site, ...
user avatar
  • 323
2 votes
1 answer
135 views

Organizing code to minimize repetition and external references

I am struggling with how to organize external references in a C# program in order to minimize code repetition. I have application "A1" for which I want to use Microsoft's Unity IoC/Dependency ...
user avatar
  • 1,967
1 vote
1 answer
275 views

Where is the composition root for a class library's internal classes?

How do we manage dependency injection in class libraries? Given the following class structure, we would like to inject an instance of Bar into Foo, and we would rather not make this the client's ...
user avatar
2 votes
1 answer
196 views

Automatically update and test npm dependencies

I would like to automate the following sequence of events; A new version of Angular is released on Github 'Something' triggers causing all our angular applications to update their npm dependencies ...
user avatar
  • 129
2 votes
1 answer
231 views

Design/Architecture for passing cross-cutting parameters via constructors at composition roots?

We have an ASP.NET MVC application and a bunch of libraries that are used by the application. There are cross-cutting concerns and dependencies like loggers, repositories, user tokens etc that almost ...
user avatar
  • 415
0 votes
1 answer
49 views

Using business objects with composite ID from a different module

We have two modules: D and S. S has a Web Service interface, which is being used by D. S's responsibility is managing a domain of objects held in a folder-like structure. So, it contains a method ...
user avatar
  • 248
40 votes
6 answers
9k views

When should dependencies be updated?

We had two major dependency-related crises with two different code bases (Android, and a Node.js web app). The Android repo needed to migrate from Flurry to Firebase, which required updating the ...
user avatar
13 votes
2 answers
6k views

How to properly manage dependencies for C/C++ project?

I have a project which uses 3-4 different open source C/C++ libraries. I built these libraries for several platforms and checked in include files and static libs for different platforms in my project....
user avatar
3 votes
1 answer
2k views

What are common Java dependency management strategies?

I am currently preparing a presentation for my software engineering class, in which I want to present the idea of package dependency management in Java on the example of "radial encapsulation" (http://...
user avatar