Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails: go install github.com/kubeshop/[email protected] or go install github.com/kubeshop/kusk-gen@latest #215

Open
mbana opened this issue May 17, 2022 · 0 comments
Labels

Comments

@mbana
Copy link

mbana commented May 17, 2022

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/[email protected] 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/[email protected]
# 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/[email protected] (in github.com/kubeshop/[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.

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
@mbana mbana added the kind/bug label May 17, 2022
mbana pushed a commit that referenced this issue May 17, 2022
* `go.mod`: Use same version of `go` that is used in `.github/workflows/go.yml`, and run `go mod tidy` and `go mod verify`.
* `.github/workflows/goreleaser.yml`: Pin `goreleaser` to version `v1.8.3`, i.e., one that works with `go1.17`.
* `.gitignore`: Ignore `.tmp/` folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant