dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.59k stars 458 forks source link

make install error output on CentOS 7.8 #807

Open itlinux opened 3 years ago

itlinux commented 3 years ago

System Information

Linux distribution

Centos7 - CentOS Linux release 7.8.2003 (Core

Terraform version

terraform -v
terraform v0.13.5

Provider and libvirt versions

terraform-provider-libvirt -version

If that gives you "was not built correctly", get the Git commit hash from your local provider repository:

git describe --always --abbrev=40 --dirty

Checklist

Description of Issue/Question

make install spits out this Error 1.

make install go install -ldflags "-X main.version=$(git describe --always --abbrev=40 --dirty)" go: github.com/terraform-providers/terraform-provider-ignition@v1.2.1 requires cloud.google.com/go@v0.49.0 requires github.com/jstemmer/go-junit-report@v0.0.0-20190106144839-af01ea7f8024: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/493c345a72dc342bd0a5aa812a6d28915145ac236f7eccad27169b86925c9fe9: exit status 128: fatal: git fetch-pack: expected shallow list make: *** [install] Error 1

Setup

(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)

Steps to Reproduce Issue

Installation when running make install from the repo


Additional information:

Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? Have you tried to reproduce the issue without them enabled?

SELinux is off

MalloZup commented 3 years ago

@itlinux hi it seems your error is releated to your build host. Maybe your golang env has some issue.

I don't use centos7 as build host for development. I will let your issue open so maybe if people are using it can help. But to me it seems your env. is somehow compromised . I would run either go mod tidy or verify modules and not using gopath etc.

Btw what do you want to achieve ? developing the provider or using pkgs? In case you want to use the provider binary, you can have look at our releases and grab the fedora rpm/binary (0.6.3)

scabala commented 3 weeks ago

I think this issue can be closed since provider uses pure Go version of libvirt client and binaries are available in official Terraform registry