mittwald / kubernetes-secret-generator

Kubernetes controller for automatically generating and updating secrets
Apache License 2.0
329 stars 56 forks source link

Go Versioning #85

Open nyarly opened 1 year ago

nyarly commented 1 year ago

Describe the bug

Because the project is tagged v3 and has a go.mod file, Go expects the module path to include the major version:

I can appreciate that you ship this project as Helm + Docker images, but I'd like to incorporate the Go API into my deploy process, which involves starting with go get

To Reproduce

⮀ go get github.com/mittwald/kubernetes-secret-generator/pkg/apis/secretgenerator/v1alpha1@v3.4.0
go: github.com/mittwald/kubernetes-secret-generator/pkg/apis/secretgenerator/v1alpha1@v3.4.0: github.com/mittwald/kubernetes-secret-generator@v3.4.0: invalid version: module contains a go.mod file, so module path must match major version ("github.com/mittwald/kubernetes-secret-generator/v3")