Skip to content

Remove dependency on global var to detect repo location

Pavlo Strokov requested to merge ps-paths-locator into master

Removes dependency on the global var config.Config to detect location of the repository of storage at the filesystem.
Locator interface includes set of methods from helper package that are use in the services to get location of the repository.
Implementation of the interface is injected into the context via tags mechanism.
In order to break cyclic dependencies some of other funcs was also moved.

Implementation with DI is !2302 (merged)

Part of: #2699 (closed)

Edited by Pavlo Strokov

Merge request reports