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

Unable to go install sigs.k8s.io/kustomize/kustomize/v3 (v3.5.5 and v3.6.0) #2462

Closed
devstein opened this issue May 12, 2020 · 6 comments
Closed
Assignees

Comments

@devstein
Copy link
Contributor

devstein commented May 12, 2020

Description

I cannot install the latest kustomize (v3.5.5) via Go.

Environment

I tried both Ubuntu 16.04 and Mac OSX 10.15.4.

Go Version 13 and 14

Error

# sigs.k8s.io/kustomize/kustomize/v3/internal/commands/status/cmd
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/fetch.go:110:19: res.ResourceIdentifier undefined (type wait.ResourceResult has no field or method ResourceIdentifier)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/print.go:61:48: data.Identifier.GroupKind undefined (type wait.ResourceIdentifier has no field or method GroupKind)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/util.go:45:25: too many arguments in call to wait.NewResolver
	have (client.Client, meta.RESTMapper, time.Duration)
	want (client.Reader, time.Duration)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/util.go:84:65: invalid composite literal type wait.ResourceIdentifier
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:135:30: resourceState.Identifier.GroupKind undefined (type wait.ResourceIdentifier has no field or method GroupKind)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:135:57: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:136:28: resourceState.Identifier.Namespace undefined (type wait.ResourceIdentifier has no field or method Namespace)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:136:55: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:137:28: resourceState.Identifier.Name undefined (type wait.ResourceIdentifier has no field or method Name)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/wait.go:137:50: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
/Users/devstein/go/pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.5.5/internal/commands/status/cmd/print.go:61:48: too many errors

Reproduce

GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v3

Or

GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@v3.5.5
@devstein
Copy link
Contributor Author

devstein commented May 22, 2020

@monopole Any thoughts on this?

@devstein
Copy link
Contributor Author

Still broken in the latest release

# sigs.k8s.io/kustomize/kustomize/v3/internal/commands/status/cmd
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/fetch.go:110:19: res.ResourceIdentifier undefined (type wait.ResourceResult has no field or method ResourceIdentifier)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/print.go:61:48: data.Identifier.GroupKind undefined (type wait.ResourceIdentifier has no field or method GroupKind)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/util.go:45:25: too many arguments in call to wait.NewResolver
	have (client.Client, meta.RESTMapper, time.Duration)
	want (client.Reader, time.Duration)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/util.go:84:65: invalid composite literal type wait.ResourceIdentifier
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:135:30: resourceState.Identifier.GroupKind undefined (type wait.ResourceIdentifier has no field or method GroupKind)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:135:57: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:136:28: resourceState.Identifier.Namespace undefined (type wait.ResourceIdentifier has no field or method Namespace)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:136:55: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:137:28: resourceState.Identifier.Name undefined (type wait.ResourceIdentifier has no field or method Name)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/wait.go:137:50: eventResource.ResourceIdentifier undefined (type *wait.EventResource has no field or method ResourceIdentifier)
../../../../pkg/mod/sigs.k8s.io/kustomize/kustomize/v3@v3.6.0/internal/commands/status/cmd/print.go:61:48: too many errors

@devstein devstein changed the title Unable to go install sigs.k8s.io/kustomize/kustomize/v3 (v3.5.5) Unable to go install sigs.k8s.io/kustomize/kustomize/v3 (v3.5.5 and v3.6.0) May 25, 2020
@monopole monopole self-assigned this May 27, 2020
@monopole
Copy link
Contributor

I'll re-release 3.6 later today after releasing the underlying deps and removing the replacement directives. It will be the same binary - no new code - but this time go install should work.

go install cannot (should not) follow relative replacements in go.mod files that go build supports. The release process needs to be modified to look for and disallow relative path replacements.

@devstein
Copy link
Contributor Author

@monopole Thank you!

@monopole
Copy link
Contributor

@devstein
Copy link
Contributor Author

Works, thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants