Questions tagged [dependency-management]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
66 views

Validation logic dependencies and separation of concerns

I am going back and forth on an aspect of our FluentValidation and MediatR pipeline behavior implementation. We receive requests which, in a Mediator pattern, are mapped to command or query objects, ...
BJ Safdie's user avatar
  • 103
6 votes
1 answer
346 views

Matching dependency versions across multiple Python projects

I have about 60 repos containing Python packages, currently using setuptools in a setup.py (run via pip install) to manage third-party dependencies. Most of these packages need to be installed on a ...
Jason C's user avatar
  • 453
7 votes
3 answers
2k views

Writing a separate package vs copy pasting small amount of reused code

I have two npm packages that build on top of our core software platform. Their core functionality is mostly different, except for how they serialize data. This is and will predictably stay identical ...
Guiomar Raissa's user avatar
1 vote
3 answers
569 views

How to handle dependencies between microservices all called within one large service

We are working on a suite of Python 'services' each of which is basically an application that does some calculations based on a domain (data) model and returns the results. These services are designed ...
Mathias A.'s user avatar
1 vote
2 answers
198 views

Standard Maven approach for large, non-Java dependencies needed for build?

I'm interested in modernizing an existing codebase for a commercial software package written in Java, in part by moving it to Maven. The primary motivator here is to shrink our git repo, which is ...
AgentOddball's user avatar
1 vote
2 answers
375 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 ...
J Fabian Meier's user avatar
1 vote
4 answers
146 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 ...
TheHans255's user avatar
0 votes
1 answer
62 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 ...
Regyn's user avatar
  • 149
0 votes
2 answers
262 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. ...
cactus's user avatar
  • 111
2 votes
1 answer
164 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 ...
Psirus's user avatar
  • 147
1 vote
1 answer
151 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 ...
Qback's user avatar
  • 237
2 votes
1 answer
336 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 ...
Codifier's user avatar
  • 171
-3 votes
1 answer
567 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, ...
Mulder's user avatar
  • 17
7 votes
2 answers
1k 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 ...
tbking's user avatar
  • 197
1 vote
2 answers
812 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 ...
Foxy's user avatar
  • 219
5 votes
3 answers
581 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 ...
sigsegv's 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 ...
Marco Stramezzi's user avatar
2 votes
0 answers
64 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 ...
Erwin Augustijn's user avatar
3 votes
2 answers
122 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 ...
dantebarba's user avatar
2 votes
1 answer
430 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 ...
Sisyphus's user avatar
  • 369
-1 votes
1 answer
74 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 ...
Ashkan Kh. Nazary's user avatar
1 vote
1 answer
90 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 ...
Leon's user avatar
  • 197
1 vote
0 answers
27 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 ...
Sven M.'s user avatar
  • 111
3 votes
0 answers
266 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 ...
Mihai Bujanca's user avatar
1 vote
1 answer
272 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 ...
Omegastick's user avatar
4 votes
2 answers
580 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 ...
Krzysztof Czelusniak's 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 ...
Shubham Kanodia's user avatar
3 votes
2 answers
139 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 ...
afontalv's user avatar
  • 141
3 votes
2 answers
551 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 ...
kukis's user avatar
  • 1,352
2 votes
1 answer
2k 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 ...
simgineer's user avatar
  • 139
1 vote
1 answer
784 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 (...
tjwrona1992's user avatar
1 vote
1 answer
205 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 ...
Mightee's user avatar
  • 179
0 votes
1 answer
617 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 ...
zaitsman's user avatar
  • 384
5 votes
3 answers
18k 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 ...
Robert Hunt's user avatar
69 votes
9 answers
20k 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 ...
Ignacio Soler Garcia's user avatar
4 votes
0 answers
819 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 ...
Raymond Saltrelli's user avatar
2 votes
1 answer
157 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 ...
igor's user avatar
  • 393
3 votes
1 answer
440 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 ...
Guy Brandwine's user avatar
5 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 ...
Julius Von Pepsi's 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); } ...
X.Otano's user avatar
  • 612
-1 votes
3 answers
426 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 ...
X.Otano's user avatar
  • 612
7 votes
1 answer
18k 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 ...
X.Otano's user avatar
  • 612
1 vote
2 answers
6k 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){ ...
X.Otano's user avatar
  • 612
0 votes
1 answer
858 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 ...
AndyM's user avatar
  • 311
2 votes
3 answers
260 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, ...
thomasb's user avatar
  • 333
2 votes
1 answer
158 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 ...
Peter M's user avatar
  • 2,029
1 vote
1 answer
293 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 ...
Shaun Luttin's user avatar
2 votes
1 answer
240 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 ...
Jags's user avatar
  • 129
2 votes
1 answer
238 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 ...
Achilles's user avatar
  • 435
0 votes
1 answer
52 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 ...
BartoszKP's user avatar
  • 248