-
Notifications
You must be signed in to change notification settings - Fork 71
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
libvirt: update scripts for libvirt #1671
libvirt: update scripts for libvirt #1671
Conversation
liudalibj
commented
Jan 22, 2024
- check golang version, the installed golang version must >= the value from versions.yaml
- update two default values in install_operator.sh
- check golang version, the installed golang version must >= the value from versions.yaml - update two default values in install_operator.sh Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
c92cf92
to
167cfab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. I've tested this with a number of different scenarios:
- We already have the same version of go installed as the versions.yaml:
# go version
go version go1.20.12 linux/amd64
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# ./libvirt/config_libvirt.sh
Installing Go...
Found 1.20.12 at /usr/local/go, good to go
- We have a newer patch release:
# go version
go version go1.20.13 linux/amd64
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# ./libvirt/config_libvirt.sh
Installing Go...
Found 1.20.13 at /usr/local/go, good to go
- We have a newer minor version:
go version go1.21.6 linux/amd64
# ./libvirt/config_libvirt.sh
Installing Go...
Found 1.21.6 at /usr/local/go, good to go
- We have an older minor version:
go version go1.18.10 linux/amd64
# ./libvirt/config_libvirt.sh
Installing Go...
Warning: Found 1.18.10 at /usr/local/go, is lower than our required 1.20.12
Please run "rm -rf /usr/local/go" and run this script again.
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# rm -rf /usr/local/go
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# ./libvirt/config_libvirt.sh
Installing Go...
Installed golang with 1.20.12
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# go version
go version go1.20.12 linux/amd64
- We have an older patch version:
# go version
go version go1.20.10 linux/amd64
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# ./libvirt/config_libvirt.sh
Installing Go...
Warning: Found 1.20.10 at /usr/local/go, is lower than our required 1.20.12
Please run "rm -rf /usr/local/go" and run this script again.
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# rm -rf /usr/local/go
root@dali-config-libvirt-go-test1:~/cloud-api-adaptor# ./libvirt/config_libvirt.sh
Installing Go...
Installed golang with 1.20.12
and all worked as expected! Thanks @liudalibj!
Did a rough testing, it looks good:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Another thing I remembered but might be wrong, @lysliu tried to build caa against golang 1.21.x but failed. @liudalibj |
It's different issue, I didn't change the go version in go.mod for caa.
|