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

Issues importing relok8s as library #89

Closed
migmartri opened this issue Nov 25, 2021 · 2 comments
Closed

Issues importing relok8s as library #89

migmartri opened this issue Nov 25, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@migmartri
Copy link
Contributor

migmartri commented Nov 25, 2021

There seems to be some issues importing relok8s as a library for example

Importing the latest version of the module returns

$ go get github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes/pkg/[email protected]
# github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes/internal/yamlops
../../go/pkg/mod/github.com/vmware-tanzu/[email protected]/internal/yamlops/yamlops.go:138:20: node.LineEnd undefined (type *yaml.Node has no field or method LineEnd)
../../go/pkg/mod/github.com/vmware-tanzu/[email protected]/internal/yamlops/yamlops.go:138:38: node.ColumnEnd undefined (type *yaml.Node has no field or method ColumnEnd)

while returning the previous version returns this other error

$ go get github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes/pkg/[email protected]
go get: github.com/vmware-tanzu/[email protected] requires
        helm.sh/helm/[email protected] requires
        github.com/deislabs/[email protected] requires
        github.com/docker/[email protected]: invalid version: unknown revision 000000000000

cc/ @petewall @josvazg @tompizmor

@migmartri migmartri self-assigned this Nov 25, 2021
@migmartri migmartri added the bug Something isn't working label Nov 25, 2021
@migmartri
Copy link
Contributor Author

Blocked by #91

@migmartri
Copy link
Contributor Author

I've made some integration tests with the following code https://gist.github.com/migmartri/a29bd5ad703c773aecbb98253743a833 and currently the only workaround is to add in the client go.mod the same replace relok8s has until #91 is fixed.

replace gopkg.in/yaml.v3 => github.com/atomatt/yaml v0.0.0-20200403124456-7b932d16ab90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant