This is very neat! I can use this at work where I talk to people from all over the world on a regular basis. Will it displace
https://worldtimebuddy.com/ in my workflow? I don't know, but it'll be fun to find out.
Not being one of the Cool Kids who has a golang environment ready to go, I logged into my trusty CentOS 7 box and installed golang with "yum install go" which went fine. I cloned the rep and attempted to build:
git clone https://github.com/oz/tz
cd tz
go build
Nothing. Nada. Dead. Not even an error.
Some googling[1] led me to 'go list -x' to list the modules, which was failing. I suspected failed IPv6 resolution (an issue on this box) so some more googling[2] led me to add this in /etc/gai.conf:
precedence ::ffff:0:0/96 100
This solved the problem with IPv6 hanging up, as IPv4 is now the preference. Neat. Now, it still failed with another error: invalid pseudo-version
This appeared to be due to an older version of git, so I installed a newer version, again after some googling[3]:
yum -y erase git
yum -y install https://repo.ius.io/ius-release-el7.rpm
yum -y install git222
I also had to reinstall golang with 'yum install go' and now I am rewarded with a completed 'go build'. Neat! I am looking forward to checking this little program out.
[1] https://github.com/golang/go/issues/16104
[2] https://stackoverflow.com/a/21672312
[3] https://github.com/golang/go/issues/38373#issuecomment-70187...
Not being one of the Cool Kids who has a golang environment ready to go, I logged into my trusty CentOS 7 box and installed golang with "yum install go" which went fine. I cloned the rep and attempted to build:
git clone https://github.com/oz/tz
cd tz
go build
Nothing. Nada. Dead. Not even an error.
Some googling[1] led me to 'go list -x' to list the modules, which was failing. I suspected failed IPv6 resolution (an issue on this box) so some more googling[2] led me to add this in /etc/gai.conf:
precedence ::ffff:0:0/96 100
This solved the problem with IPv6 hanging up, as IPv4 is now the preference. Neat. Now, it still failed with another error: invalid pseudo-version
This appeared to be due to an older version of git, so I installed a newer version, again after some googling[3]:
yum -y erase git
yum -y install https://repo.ius.io/ius-release-el7.rpm
yum -y install git222
I also had to reinstall golang with 'yum install go' and now I am rewarded with a completed 'go build'. Neat! I am looking forward to checking this little program out.
[1] https://github.com/golang/go/issues/16104 [2] https://stackoverflow.com/a/21672312 [3] https://github.com/golang/go/issues/38373#issuecomment-70187...