You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion this should be refactored out and the getGoDirs and buildGoDir both be inputs to the buildGoApplication function.
I do understand that overriding buildPhase and/or checkPhase isn't exactly intended, but my use-case is to run the make command in buildPhase which isn't supported by the default buildPhase build command:
Passing
to
buildGoApplication
causes checkPhase to error withOr if
getGoDirs
is defined, then the error isthis happens because
getGoDirs
andbuildGoDir
are defined in the default buildPhase.Both checkPhase and buildPhase share the same code for looping over subCommands:
In my opinion this should be refactored out and the
getGoDirs
andbuildGoDir
both be inputs to thebuildGoApplication
function.I do understand that overriding buildPhase and/or checkPhase isn't exactly intended, but my use-case is to run the
make
command in buildPhase which isn't supported by the default buildPhase build command:gomod2nix/builder/default.nix
Line 326 in 3cbf3a5
In my case it was rather simple to write the checkPhase manually, so that is a reasonable workaround.
The text was updated successfully, but these errors were encountered: