kubeshop / kusk-gen

Kusk Gen generates Ingress-controller configurations from your OpenAPI definition
https://kubeshop.github.io/kusk-gen
MIT License
173 stars 12 forks source link

Install fails: `go install github.com/kubeshop/kusk-gen@v0.7.0` or `go install github.com/kubeshop/kusk-gen@latest` #215

Open mbana opened 2 years ago

mbana commented 2 years ago

Describe the bug

go install is failing at v0.7.0, i.e., latest at the time of writing this.

To Reproduce

Steps to reproduce the behavior:

  1. go install github.com/kubeshop/kusk-gen@v0.7.0 or go install github.com/kubeshop/kusk-gen@latest.
  2. Specify v0.7.0 or latest.
  3. The entire install log is:
$ cd /tmp; go install -v -x -a github.com/kubeshop/kusk-gen@v0.7.0
# get https://proxy.golang.org/github.com/@v/v0.7.0.info
# get https://proxy.golang.org/github.com/kubeshop/@v/v0.7.0.info
# get https://proxy.golang.org/github.com/kubeshop/@v/v0.7.0.info: 410 Gone (0.256s)
# get https://proxy.golang.org/github.com/@v/v0.7.0.info: 410 Gone (0.256s)
go install: github.com/kubeshop/kusk-gen@v0.7.0 (in github.com/kubeshop/kusk-gen@v0.7.0):
    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.

Expected behavior

kusk-gen should install fine using go install.

Screenshots

None applicable.

Desktop (please complete the following information):

$ go version                                             
go version go1.17 linux/amd64
$ cat /etc/os-release      
NAME="Fedora Linux"
VERSION="36 (Workstation Edition)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Additional context

Apparently, there are fixes available. Please see the following for the potential fix and bug report:

The command that follows should probably be run after a tag or release has been made to sanity check it:

go install github.com/kubeshop/kusk-gen@latest