dmacvicar / terraform-provider-libvirt

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

import io/fs failed on go1.14.7 #866

Open reihl opened 3 years ago

reihl commented 3 years ago

System Information

go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af github.com/dmacvicar/terraform-provider-libvirt/libvirt/uri imports io/fs: package io/fs is not in GOROOT (/usr/lib/golang/src/io/fs)

Linux distribution

RHEL8.3

Terraform version


terraform -v
 1.0.1.

### Provider and libvirt versions
libvirt.x86_64          6.6.0-6.module+el8.3.0+8125+aefcf088  

- [ x] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?

- [ x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:

## Description of Issue/Question

### Setup

### Steps to Reproduce Issue

Get the current terraform-provider-libvirt code
Install go1.14.7
In  terraform-provider-libvirt directory run
1. go mod vendor

you will get:
go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
github.com/dmacvicar/terraform-provider-libvirt/libvirt/uri imports
    io/fs: package io/fs is not in GOROOT (/usr/lib/golang/src/io/fs)

___
## Additional information:

Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? No
Have you tried to reproduce the issue without them enabled? I tried with go1.16 and its works
dmacvicar commented 3 years ago

I think I will need to bump the requirement in go.mod to go 1.16.