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
Describe the bug
go install does not work with custom-pod-autoscaler because its go.mod includes replace directives
To Reproduce
go install github.com/jthomperoo/custom-pod-autoscaler/[email protected]
Expected behavior
It would be useful if the package was compatible with go install (for context, I'm trying to install it in an existing container).
Additional context
go: downloading github.com/jthomperoo/custom-pod-autoscaler/v2 v2.4.0
go install: github.com/jthomperoo/custom-pod-autoscaler/[email protected] (in github.com/jthomperoo/custom-pod-autoscaler/[email protected]):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Unfortunately this project has a dependency on Argo Rollouts which includes a direct dependency on k8s.io/kubernetes which requires these replace directives: argoproj/argo-rollouts/issues/473
I'm looking at removing this direct dependency from this codebase, but in order to support go install I'll need to think of a way around this until Argo Rollouts removes this dependency. I don't think that will be any time soon, so the options I can think of are these:
Copy the required code into this codebase from Argo Rollouts, eliminating the dependency.
Describe the bug
go install does not work with custom-pod-autoscaler because its go.mod includes replace directives
To Reproduce
go install github.com/jthomperoo/custom-pod-autoscaler/[email protected]
Expected behavior
It would be useful if the package was compatible with go install (for context, I'm trying to install it in an existing container).
Additional context
custom-pod-autoscaler/go.mod
Line 18 in 7c8f66d
The text was updated successfully, but these errors were encountered: