sl1pm4t / k2tf

Kubernetes YAML to Terraform HCL converter
Mozilla Public License 2.0
1.17k stars 108 forks source link

Dependabot can't parse your go.mod #54

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Dependabot couldn't parse the go.mod found at /go.mod.

The error Dependabot encountered was:

go: github.com/terraform-providers/terraform-provider-kubernetes@v1.9.0 requires
    github.com/gophercloud/gophercloud@v0.0.0-20190523203818-4885c347dcf4: invalid pseudo-version: does not match version-control timestamp (2019-05-23T20:30:39Z)

View the update logs.

joaquinclearmetal commented 4 years ago

Cannot build package any more.

STEPS

git clone https://github.com/sl1pm4t/k2tf.git
cd k2tf 
brew install go
make build

ACTUAL RESULTS

go build -v
get "mvdan.cc/unparam": found meta tag get.metaImport{Prefix:"mvdan.cc/unparam", VCS:"git", RepoRoot:"https://github.com/mvdan/unparam"} at //mvdan.cc/unparam?go-get=1
get "golang.org/x/tools": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools?go-get=1
go: github.com/terraform-providers/terraform-provider-kubernetes@v1.9.0 requires
    github.com/gophercloud/gophercloud@v0.0.0-20190523203818-4885c347dcf4: invalid pseudo-version: does not match version-control timestamp (2019-05-23T20:30:39Z)
make: *** [build] Error 1
rafaelmagu commented 4 years ago

Once I updated terraform-provider-kubernetes to v1.10.0, it got stuck on the next issue:

verifying github.com/terraform-providers/terraform-provider-random@v2.2.1+incompatible/go.mod: github.com/terraform-providers/terraform-provider-random@v2.2.1+incompatible/go.mod: reading https://sum.golang.org/lookup/github.com/terraform-providers/terraform-provider-random@v2.2.1+incompatible: 410 Gone

This project still won't build cleanly.

sl1pm4t commented 4 years ago

This seems to be a go 1.13 issue, that is not present with go 1.12.

I can build from master with:

docker run --rm -it -v `pwd`:/workspace -w /workspace golang:1.12 go build -v

but it fails with:

docker run --rm -it -v `pwd`:/workspace -w /workspace golang:1.13 go build -v

Note - I'm using the docker container to build to make sure the go mod cache is clean.

The same also applies to the terraform -provider-kubernetes repo. I cannot build master or v1.10.0 with go 1.13, but go 1.12 builds OK.

sl1pm4t commented 4 years ago

@rafaelmagu - I've just released v0.3.0 (https://github.com/sl1pm4t/k2tf/releases/tag/v0.3.0) that updated the terraform-provider-kubernetes dependency to v1.10.0.

sl1pm4t commented 4 years ago

This should be fixed now by #58