addon-operator
addon-operator copied to clipboard
Multiple module directories
Is your feature request related to a problem? Please describe.
I want to have multiple directories with modules. It is convenient for building the addon-operator with Go hooks when modules are stored in different repositories.
Describe the solution you'd like to see
I want to pass colon-delimited paths in MODULES_DIR env.
The first entry should have the highest priority as it is with PATH
variable.
Describe alternatives you've considered
-
Moving all go hooks sources into one /modules directory. It is not working if there are imports of
internal
packages. -
Replace in
go.mod
file. It works only if the module'shooks
directory is a separate Go module.
Additional context