addon-operator icon indicating copy to clipboard operation
addon-operator copied to clipboard

Multiple module directories

Open diafour opened this issue 3 years ago • 0 comments

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's hooks directory is a separate Go module.

Additional context

diafour avatar Nov 12 '21 14:11 diafour