Buildah build date 1969


#1

Not sure where to file issues like this - just updated my fedora29 system and buildah version returns build date in 1969:

[root@hyperion ~]# buildah version
Version:         1.5
Go Version:      go1.11.2
Image Spec:      1.0.0
Runtime Spec:    1.0.0
CNI Spec:        0.4.0
libcni Version:  
Git Commit:      
Built:           Wed Dec 31 18:00:00 1969
OS/Arch:         linux/amd64

#2

The RTC of your device maybe?


#3

Hmm, this should be written at build time by the makefile, unless it didn’t get written for some reason?


#4

The system time on the server looks good - and podman version is good. Looks like maybe the build server or container that made the buildah binary glitched because the RPM has the correct date/time:

[root@hyperion ~]# buildah version
Version:         1.5
Go Version:      go1.11.2
Image Spec:      1.0.0
Runtime Spec:    1.0.0
CNI Spec:        0.4.0
libcni Version:  
Git Commit:      
Built:           Wed Dec 31 18:00:00 1969
OS/Arch:         linux/amd64
[root@hyperion ~]# podman version
Version:       1.0.0
Go Version:    go1.11.4
Git Commit:    "49780a1cf10d572edc4e1ea3b8a8429ce391d47d"
Built:         Mon Jan 14 14:38:17 2019
OS/Arch:       linux/amd64
[root@hyperion ~]# date
Fri Jan 25 10:51:24 CST 2019
[root@hyperion ~]# rpm -qi buildah
Name        : buildah
Version     : 1.5
Release     : 1.gite94b4f9.fc29
Architecture: x86_64
Install Date: Wed 12 Dec 2018 10:59:22 AM CST
Group       : Unspecified
Size        : 20724445
License     : ASL 2.0
Signature   : RSA/SHA256, Fri 23 Nov 2018 06:38:16 AM CST, Key ID a20aa56b429476b4
Source RPM  : buildah-1.5-1.gite94b4f9.fc29.src.rpm
Build Date  : Thu 22 Nov 2018 10:20:50 AM CST
Build Host  : buildvm-25.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/containers/buildah
Bug URL     : https://bugz.fedoraproject.org/buildah
Summary     : A command line tool used for creating OCI Images

#5

Someone likely swapped a build number for a date


#6

Ahh, looks like this was probably by design to support reproducible builds:


#7

Hmm, I’d argue in this case it shouldn’t bother showing the timestamp at all, might file an issue for that.

EDIT: Actually this seems to be solely for buildah commit? Probably a similar idea, though.